{"_id":"gulp-extname","_rev":"230570","name":"gulp-extname","description":"gulp plugin to dynamically rewrite dest extensions based on src extensions.","dist-tags":{"latest":"0.2.2"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:45:47.000Z","created":"2014-11-13T16:47:22.735Z","0.2.2":"2016-01-06T15:17:45.418Z","0.2.0":"2014-12-08T10:45:55.220Z","0.1.1":"2014-11-13T16:52:28.127Z","0.1.0":"2014-11-13T16:47:22.735Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/gulp-extname.git"},"versions":{"0.2.2":{"name":"gulp-extname","description":"gulp plugin to dynamically rewrite dest extensions based on src extensions.","version":"0.2.2","homepage":"https://github.com/jonschlinkert/gulp-extname","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/gulp-extname.git"},"bugs":{"url":"https://github.com/jonschlinkert/gulp-extname/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"rewrite-ext":"^0.2.0","through2":"^2.0.0"},"devDependencies":{"gulp-format-md":"^0.1.4","mocha":"*","should":"*","vinyl":"^1.1.0"},"keywords":["dest","ext","extension","extensions","extname","file","filename","filepath","fp","fs","gulpfriendly","map","name","path","rename","rewrite","src"],"verb":{"related":{"list":["gulp-dest","gulp-htmlmin","gulp-prettify","gulp-format-md","gulp-routes"]},"layout":"default","plugins":["gulp-format-md"]},"gitHead":"ca70d7edcbd09ba6b3ac9dbf5358035c5d9c4303","_id":"gulp-extname@0.2.2","_shasum":"344981172c57523d8781a3c5bc2c8cbacb07aeab","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"344981172c57523d8781a3c5bc2c8cbacb07aeab","size":2629,"noattachment":false,"key":"/gulp-extname/-/gulp-extname-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-extname/download/gulp-extname-0.2.2.tgz"},"directories":{},"publish_time":1452093465418,"_cnpm_publish_time":1452093465418,"_hasShrinkwrap":false},"0.2.0":{"name":"gulp-extname","description":"gulp plugin to dynamically rewrite dest extensions based on src extensions.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/gulp-extname","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/gulp-extname.git"},"bugs":{"url":"https://github.com/jonschlinkert/gulp-extname/issues"},"licenses":{"type":"MIT","url":"https://github.com/jonschlinkert/gulp-extname/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"dependencies":{"rewrite-ext":"^0.1.0","through2":"^0.6.3"},"devDependencies":{"gulp-util":"^3.0.1","mocha":"*","should":"*"},"keywords":["dest","ext","extension","extensions","extname","file","filename","filepath","fp","fs","gulpfriendly","map","name","path","rename","rewrite","src"],"_id":"gulp-extname@0.2.0","_shasum":"3ee72889bf55dff64bacca456b0449aa096aeb27","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"3ee72889bf55dff64bacca456b0449aa096aeb27","size":1626,"noattachment":false,"key":"/gulp-extname/-/gulp-extname-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-extname/download/gulp-extname-0.2.0.tgz"},"directories":{},"publish_time":1418035555220,"_cnpm_publish_time":1418035555220,"_hasShrinkwrap":false},"0.1.1":{"name":"gulp-extname","description":"gulp plugin to dynamically rewrite dest extensions based on src extensions.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/gulp-extname","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/gulp-extname.git"},"bugs":{"url":"https://github.com/jonschlinkert/gulp-extname/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/gulp-extname/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"gulp-util":"^3.0.1","mocha":"*","should":"*"},"keywords":["dest","ext","extensions","extname","file","filename","filepath","fp","fs","gulpfriendly","map","path","src"],"dependencies":{"rewrite-ext":"^0.1.0","through2":"^0.6.3"},"_id":"gulp-extname@0.1.1","_shasum":"ec7f8e657aec544c4e1c714593b163349925732c","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ec7f8e657aec544c4e1c714593b163349925732c","size":3247,"noattachment":false,"key":"/gulp-extname/-/gulp-extname-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-extname/download/gulp-extname-0.1.1.tgz"},"directories":{},"publish_time":1415897548127,"_cnpm_publish_time":1415897548127,"_hasShrinkwrap":false},"0.1.0":{"name":"gulp-extname","description":"gulp plugin to dynamically rewrite dest extensions based on src extensions.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/gulp-extname","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/gulp-extname.git"},"bugs":{"url":"https://github.com/jonschlinkert/gulp-extname/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/gulp-extname/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"gulp-util":"^3.0.1","mocha":"*","should":"*"},"keywords":["dest","ext","extensions","extname","file","filename","filepath","fp","fs","gulpfriendly","map","path","src"],"dependencies":{"rewrite-ext":"^0.1.0","through2":"^0.6.3"},"_id":"gulp-extname@0.1.0","_shasum":"0993168a6fc802f5d30560b7fa688aa96a96b8bc","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"0993168a6fc802f5d30560b7fa688aa96a96b8bc","size":3246,"noattachment":false,"key":"/gulp-extname/-/gulp-extname-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-extname/download/gulp-extname-0.1.0.tgz"},"directories":{},"publish_time":1415897242735,"_cnpm_publish_time":1415897242735,"_hasShrinkwrap":false}},"readme":"# gulp-extname [![NPM version](https://img.shields.io/npm/v/gulp-extname.svg)](https://www.npmjs.com/package/gulp-extname) [![Build Status](https://img.shields.io/travis/jonschlinkert/gulp-extname.svg)](https://travis-ci.org/jonschlinkert/gulp-extname)\n\n> gulp plugin to dynamically rewrite dest extensions based on src extensions.\n\n- [Install](#install)\n- [Usage](#usage)\n  * [Define extension](#define-extension)\n- [Extension mappings](#extension-mappings)\n- [Related projects](#related-projects)\n- [Running tests](#running-tests)\n- [Contributing](#contributing)\n- [Author](#author)\n- [License](#license)\n\n_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm i gulp-extname --save\n```\n\n## Usage\n\n```js\nvar gulp = require('gulp');\nvar extname = require('gulp-extname');\n\ngulp.task('default', function() {\n  gulp.src('styles.less')\n    .pipe(extname())\n    .pipe(gulp.dest('dist/css'));\n    //=> dist/css/styles.css\n});\n```\n\n### Define extension\n\nExplicitly pass an extension to use. Any of these will work:\n\n```js\n.pipe(extname('.foo'))\n\n// or\n.pipe(extname('foo'))\n\n// or\n.pipe(extname({ext: 'foo'}))\n```\n\n## Extension mappings\n\nThe following extensions are mapped automatically:\n\n```js\n// html\n.md    //=> .html\n.hbs   //=> .html\n.swig  //=> .html\n.tmpl  //=> .html\n.html  //=> .html\n.htm   //=> .html\n\n// css\n.less  //=> .css\n.styl  //=> .css\n.sass  //=> .css\n.scss  //=> .css\n.css   //=> .css\n\n// js\n.coffee//=> .js\n.js    //=> .js\n```\n\n[Add extension mappings](https://github.com/jonschlinkert/ext-map), or use [rewrite-ext](https://github.com/jonschlinkert/rewrite-ext) for non-gulp projects.\n\n## Related projects\n\n* [gulp-dest](https://www.npmjs.com/package/gulp-dest): Gulp plugin for easily defining destination paths using path variables. | [homepage](https://github.com/jonschlinkert/gulp-dest)\n* [gulp-format-md](https://www.npmjs.com/package/gulp-format-md): Gulp plugin for beautifying markdown using pretty-remarkable. | [homepage](https://github.com/jonschlinkert/gulp-format-md)\n* [gulp-htmlmin](https://www.npmjs.com/package/gulp-htmlmin): gulp plugin to minify HTML. | [homepage](https://github.com/jonschlinkert/gulp-htmlmin#readme)\n* [gulp-prettify](https://www.npmjs.com/package/gulp-prettify): Prettify, format, beautify HTML. | [homepage](https://github.com/jonschlinkert/gulp-prettify)\n* [gulp-routes](https://www.npmjs.com/package/gulp-routes): Add middleware to run for specified routes in your gulp pipeline. | [homepage](https://github.com/assemble/gulp-routes)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/gulp-extname/issues/new).\n\n## Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2016 [Jon Schlinkert](https://github.com/jonschlinkert)\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb) on January 06, 2016._","_attachments":{},"homepage":"https://github.com/jonschlinkert/gulp-extname","bugs":{"url":"https://github.com/jonschlinkert/gulp-extname/issues"},"license":"MIT"}