filetypeicons

1.0.2 • Public • Published

findFileExtensionIcon

NodeJs Package which returns font-awesome icons html depending upon the file extension.

Installation

$ npm install filetypeicons --save

Usage

var findFileExtIcon = require('filetypeicons');

console.log(findFileExtIcon("/path/to/media.wav"));

output

$ <i class="far fa-file-audio"></i>

/filetypeicons/

    Package Sidebar

    Install

    npm i filetypeicons

    Weekly Downloads

    6

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    2.44 kB

    Total Files

    4

    Last publish

    Collaborators

    • amjad489