code-icons
v1.0.5
Published
File specific icons for the browser from Atom File-icons, https://github.com/file-icons/atom
Downloads
38
Maintainers
Readme
code-icons
File specific icons for the browser from Atom File-icons, https://github.com/file-icons/atom
Install
npm i code-icons
Include CSS styles
import 'code-icons/styles.css'
Get className
import icons from 'code-icons'
const className = icons.getClass('src/app.js')
const className = icons.getClassWithColor('README.md')
document.body.innerHTML += `<span class="${className}"></span>`
Resources
- Atom File Icons, file specific icons for improved visual grepping.
- Markdown Browser Plus, Github flavoured, local file browser for markdown docs.