Skip to content

just an object to map `src` file extensions to `dest` file extensions as key/value pairs (e.g. `{'.less': '.css'}`). Useful for rewriting paths in tasks/plugins. pull requests welcome.

License

Notifications You must be signed in to change notification settings

jonschlinkert/ext-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ext-map NPM version

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: gulp plugin to dynamically rewrite dest extensions based on src extensions.
  • rewrite-ext: Automatically re-write the destination extension of a filepath based on the source extension. e.g … more

Install with npm

npm i ext-map --save

Usage

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:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2014-2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on May 04, 2015.[assemble]: http://assemble.io [template]: https://github.com/jonschlinkert/template [verb]: https://github.com/assemble/verb

About

just an object to map `src` file extensions to `dest` file extensions as key/value pairs (e.g. `{'.less': '.css'}`). Useful for rewriting paths in tasks/plugins. pull requests welcome.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •