@momsfriendlydevco/fa-icons
Module which returns the closest FontAwesome class to a file name
Last updated a year ago by hash-bang .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @momsfriendlydevco/fa-icons 
SYNC missed versions from official npm registry.

@MomsFriendlyDevCo/Icons

Module which returns the closest FontAwesome class to a file name.

var faIcons = require('@momsfriendlydevco/fa-icons');

faIcons('something.mp4') //= "fas fa-file-video"
faIcons('something.csv') //= "fas fa-file-csv"
faIcons('something.weird') //= "fas fa-file"

API

This module exposes a single function which resolves with the best matching class based on an input file path.

faIcons(path)

Returns the cloest matching icon based on the internal index.

faIcons.index

Collection of rules to use when matching the path against the icon.

Current Tags

  • 1.0.1                                ...           latest (a year ago)

2 Versions

  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |