{"_id":"gulp-insert","_rev":"2927253","name":"gulp-insert","description":"Append or Prepend a string with gulp","dist-tags":{"latest":"0.5.0"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"npm:nfroidure","email":""},{"name":"npm:rschmukler","email":""},{"name":"rschmukler","email":"ryan@slingingcode.com"}],"time":{"modified":"2023-03-03T06:06:53.000Z","created":"2014-01-18T02:08:15.880Z","0.5.0":"2015-08-05T23:30:09.030Z","0.4.0":"2014-06-29T03:16:23.941Z","0.3.0":"2014-04-06T21:14:53.085Z","0.2.0":"2014-02-02T23:41:02.344Z","0.1.0":"2014-01-18T02:08:15.880Z"},"users":{},"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"repository":{"type":"git","url":"git://github.com/rschmukler/gulp-insert.git"},"versions":{"0.5.0":{"name":"gulp-insert","version":"0.5.0","description":"Append or Prepend a string with gulp","main":"index.js","scripts":{"test":"mocha test/*.js"},"repository":{"type":"git","url":"git://github.com/rschmukler/gulp-insert.git"},"keywords":["gulp","gulpplugin","append","insert","prepend"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","homepage":"https://github.com/rschmukler/gulp-insert/","bugs":{"url":"https://github.com/rschmukler/gulp-insert/issues"},"devDependencies":{"mocha":"~1.17.0","gulp-util":"~2.2.12","chai":"^1.9.1"},"dependencies":{"readable-stream":"^1.0.26-4","streamqueue":"0.0.6"},"gitHead":"8d35acb4fbf402cac02143b477ba1b4ca5f14b6a","_id":"gulp-insert@0.5.0","_shasum":"32313f13e4a23cf5acca5ce5f0c080923c778602","_from":".","_npmVersion":"2.11.1","_nodeVersion":"2.3.0","_npmUser":{"name":"rschmukler","email":"ryan@slingingcode.com"},"dist":{"shasum":"32313f13e4a23cf5acca5ce5f0c080923c778602","size":2590,"noattachment":false,"key":"/gulp-insert/-/gulp-insert-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-insert/download/gulp-insert-0.5.0.tgz"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"npm:nfroidure","email":""},{"name":"npm:rschmukler","email":""},{"name":"rschmukler","email":"ryan@slingingcode.com"}],"directories":{},"publish_time":1438817409030,"_hasShrinkwrap":false,"_cnpm_publish_time":1438817409030,"_cnpmcore_publish_time":"2021-12-16T18:46:30.985Z"},"0.4.0":{"name":"gulp-insert","version":"0.4.0","description":"Append or Prepend a string with gulp","main":"index.js","scripts":{"test":"mocha test/*.js"},"repository":{"type":"git","url":"git://github.com/rschmukler/gulp-insert"},"keywords":["gulp","gulpplugin","append","insert","prepend"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","homepage":"https://github.com/rschmukler/gulp-insert/","bugs":{"url":"https://github.com/rschmukler/gulp-insert/issues"},"devDependencies":{"mocha":"~1.17.0","gulp-util":"~2.2.12","chai":"^1.9.1"},"dependencies":{"readable-stream":"^1.0.26-4","streamqueue":"0.0.6"},"_id":"gulp-insert@0.4.0","dist":{"shasum":"781213f110de39e9b36ca8c3bb502e045a58cdfd","size":2228,"noattachment":false,"key":"/gulp-insert/-/gulp-insert-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-insert/download/gulp-insert-0.4.0.tgz"},"_from":".","_npmVersion":"1.3.26","_npmUser":{"name":"rschmukler","email":"ryan@slingingcode.com"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"npm:nfroidure","email":""},{"name":"npm:rschmukler","email":""},{"name":"rschmukler","email":"ryan@slingingcode.com"}],"directories":{},"publish_time":1404011783941,"_hasShrinkwrap":false,"_cnpm_publish_time":1404011783941,"_cnpmcore_publish_time":"2021-12-16T18:46:31.198Z"},"0.3.0":{"name":"gulp-insert","version":"0.3.0","description":"Append or Prepend a string with gulp","main":"index.js","scripts":{"test":"mocha test/*.js"},"repository":{"type":"git","url":"git://github.com/rschmukler/gulp-insert"},"keywords":["gulp","gulpplugin","append","insert","prepend"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","homepage":"https://github.com/rschmukler/gulp-insert/","bugs":{"url":"https://github.com/rschmukler/gulp-insert/issues"},"devDependencies":{"mocha":"~1.17.0","gulp-util":"~2.2.12","chai":"^1.9.1"},"dependencies":{"readable-stream":"^1.0.26-4","streamqueue":"0.0.6"},"_id":"gulp-insert@0.3.0","dist":{"shasum":"d02def7ce0794075d5fc161598e998011249cd39","size":2024,"noattachment":false,"key":"/gulp-insert/-/gulp-insert-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-insert/download/gulp-insert-0.3.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"rschmukler","email":"ryan@slingingcode.com"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"npm:nfroidure","email":""},{"name":"npm:rschmukler","email":""},{"name":"rschmukler","email":"ryan@slingingcode.com"}],"directories":{},"publish_time":1396818893085,"_hasShrinkwrap":false,"_cnpm_publish_time":1396818893085,"_cnpmcore_publish_time":"2021-12-16T18:46:31.416Z"},"0.2.0":{"name":"gulp-insert","version":"0.2.0","description":"Append or Prepend a string with gulp","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/rschmukler/gulp-insert"},"keywords":["gulp","append","insert","prepend"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","bugs":{"url":"https://github.com/rschmukler/gulp-insert/issues"},"devDependencies":{"mocha":"~1.17.0","expect.js":"~0.2.0","gulp-util":"~2.2.12"},"dependencies":{"map-stream":"~0.1.0"},"homepage":"https://github.com/rschmukler/gulp-insert","_id":"gulp-insert@0.2.0","dist":{"shasum":"4fe7fc7bd08e8f43d16eebd2f54093b0b6069392","size":1452,"noattachment":false,"key":"/gulp-insert/-/gulp-insert-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-insert/download/gulp-insert-0.2.0.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"rschmukler","email":"ryan@slingingcode.com"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"npm:nfroidure","email":""},{"name":"npm:rschmukler","email":""},{"name":"rschmukler","email":"ryan@slingingcode.com"}],"directories":{},"publish_time":1391384462344,"_hasShrinkwrap":false,"_cnpm_publish_time":1391384462344,"_cnpmcore_publish_time":"2021-12-16T18:46:31.620Z"},"0.1.0":{"name":"gulp-insert","version":"0.1.0","description":"Append or Prepend a string with gulp","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/rschmukler/gulp-insert"},"keywords":["gulp","append","insert","prepend"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","bugs":{"url":"https://github.com/rschmukler/gulp-insert/issues"},"devDependencies":{"mocha":"~1.17.0","expect.js":"~0.2.0","gulp-util":"~2.2.12"},"dependencies":{"map-stream":"~0.1.0"},"_id":"gulp-insert@0.1.0","dist":{"shasum":"c36b28c6b17ddd160828e432b13ee383485674dd","size":1013,"noattachment":false,"key":"/gulp-insert/-/gulp-insert-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-insert/download/gulp-insert-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"rschmukler","email":"ryan@slingingcode.com"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"npm:nfroidure","email":""},{"name":"npm:rschmukler","email":""},{"name":"rschmukler","email":"ryan@slingingcode.com"}],"directories":{},"publish_time":1390010895880,"_hasShrinkwrap":false,"_cnpm_publish_time":1390010895880,"_cnpmcore_publish_time":"2021-12-16T18:46:31.834Z"}},"readme":"# gulp-insert\n\nString manipulation library for gulp\n\n## Usage\n\n```\nnpm install gulp-insert\n```\n\n```js\nvar insert = require('gulp-insert');\n```\n\n## Append\n\nAppends a string onto the contents.\n\n```js\n.pipe(insert.append('world')); // Appends 'world' to the contents of every file\n```\n\n## Prepend\n\nPrepends a string onto the contents.\n\n```js\n.pipe(insert.prepend('Hello')); // Prepends 'Hello' to the contents of every file\n```\n## Wrap\n\nWraps the contents with two strings.\n\n```js\n.pipe(insert.wrap('Hello', 'World')); // prepends 'hello' and appends 'world' to the contents\n```\n\n## Transform\n\nCalls a function with the contents of the file.\n\n```js\n.pipe(insert.transform(function(contents, file) {\n  return contents.toUpperCase();\n}));\n```\n\nTransform has access to the underlying vinyl file. The following code adds a '//' comment with the full file name before the actual content.\n\n```js\n.pipe(insert.transform(function(contents, file) {\n\n\tvar comment = '// local file: ' + file.path + '\\n';\n\treturn comment + contents;\n}));\n```\n\nSee https://github.com/wearefractal/vinyl for docmentation on the 'file' parameter.\n","_attachments":{},"homepage":"https://github.com/rschmukler/gulp-insert/","bugs":{"url":"https://github.com/rschmukler/gulp-insert/issues"},"license":"MIT"}