pretty-file-icons
v2.2.1
Published
Pretty colorful icons for files (in svg format).
Downloads
1,094
Maintainers
Readme
Pretty File Icons
Pretty colorful icons for files (in svg format).
Icon pack author: Madebyoliver. Icons are published as-is and under the licence by flaticon.com. Licence for everything except icons is MIT.
See index.json for available icons list. Live preview is available here.
Usage
Just download image files and use them. Also, this package is available on NPM:
npm install pretty-file-icons
In addition, this package contains mapping for some file extensions - see the index.json file. Also, it can be used in javascript applications to retrieve icon names by file name:
var prettyFileIcons = require('pretty-file-icons');
console.log(prettyFileIcons.getIcon('test.csv'));
console.log(prettyFileIcons.getIcon('test.csv', 'svg'));
console.log(prettyFileIcons.getIcon('.test', 'svg'));
// Prints:
// csv
// csv.svg
// unknown.svg