Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pretty-file-icons

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pretty-file-icons

Pretty colorful icons for files (in svg format).

  • 2.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
156
decreased by-44.68%
Maintainers
1
Weekly downloads
 
Created
Source

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

Preview:

Preview

Keywords

FAQs

Package last updated on 12 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc