biofriction-wp-theme/node_modules/ext-map/README.md

80 lines
1.9 KiB
Markdown

# ext-map [![NPM version](https://badge.fury.io/js/ext-map.svg)](http://badge.fury.io/js/ext-map)
> just an object that maps `src` file extensions to `dest` file extensions as key/value pairs (e.g. `{'.less': '.css'}`). Useful for dynamically rewriting paths in tasks/plugins. pull requests welcome.
## Related projects
* [gulp-extname](https://github.com/jonschlinkert/gulp-extname): gulp plugin to dynamically rewrite dest extensions based on src extensions.
* [rewrite-ext](https://github.com/jonschlinkert/rewrite-ext): Automatically re-write the destination extension of a filepath based on the source extension. e.g … [more](https://github.com/jonschlinkert/rewrite-ext)
Install with [npm](https://www.npmjs.com/)
```bash
npm i ext-map --save
```
## Usage
```js
var exts = require('ext-map');
```
### Mapped extensions
Pull requests to add mappings would be appreciated.
**HTML**
* `.md`: => `.html`
* `.hbs`: => `.html`
* `.slim`: => `.html`
* `.swig`: => `.html`
* `.tmpl`: => `.html`
* `.html`: => `.html`
* `.htm`: => `.html`
**css**
* `.less`: => `.css`
* `.styl`: => `.css`
* `.sass`: => `.css`
* `.scss`: => `.css`
* `.css`: => `.css`
**js**
* `.coffee`: => `.js`
* `.ls`: => `.js`
* `.ts`: => `.js`
* `.js`: => `.js`
## Tests
Install dev dependencies:
```bash
npm i -d && npm test
```
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/ext-map/issues)
## Author
**Jon Schlinkert**
+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
## License
Copyright (c) 2014-2015 Jon Schlinkert
Released under the MIT license.
***
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 04, 2015._[assemble]: http://assemble.io
[template]: https://github.com/jonschlinkert/template
[verb]: https://github.com/assemble/verb