files-by-ext
Give it a list of files, receive an object keyed by file extension
Last updated 5 years ago by kimjoar .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install files-by-ext 
SYNC missed versions from official npm registry.

files-by-ext

Give it a list of files, receive an object keyed by file extension

Install

npm install --save files-by-ext

Usage

filesByExt(['test.js', 'test2.js', 'test.css']);
//=> { js: ['test.js', 'test2.js'], css: ['test.css'] }

API

filesByExt(files)

Returns an object keyed by file extension. Uses file-extension behind the scenes.

files

Type: array

See file-extension for details on how file extensions are found and how it differs from path.extname.

License

MIT © Kim Joar Bekkelund

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

1 Versions

  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |