{"_id":"vinyl-sourcemaps-apply","_rev":"88343","name":"vinyl-sourcemaps-apply","description":"Apply a source map to a vinyl file, merging it with preexisting source maps","dist-tags":{"latest":"0.2.1"},"maintainers":[{"name":"floridoo","email":"florian.reiterer@gmail.com"}],"time":{"modified":"2021-06-03T10:28:43.000Z","created":"2014-05-11T12:57:45.450Z","0.2.1":"2015-12-27T17:56:57.256Z","0.2.0":"2015-09-27T16:57:57.765Z","0.1.4":"2014-09-25T12:22:24.449Z","0.1.3":"2014-09-19T14:34:02.047Z","0.1.2":"2014-09-19T00:29:38.491Z","0.1.1":"2014-05-11T13:08:53.304Z","0.1.0":"2014-05-11T12:57:45.450Z"},"users":{"codeshrew":true,"danwyand":true},"author":{"name":"Florian Reiterer","email":"me@florianreiterer.com"},"repository":{"type":"git","url":"git://github.com/floridoo/vinyl-sourcemaps-apply.git"},"versions":{"0.2.1":{"name":"vinyl-sourcemaps-apply","version":"0.2.1","description":"Apply a source map to a vinyl file, merging it with preexisting source maps","homepage":"http://github.com/floridoo/vinyl-sourcemaps-apply","repository":{"type":"git","url":"git://github.com/floridoo/vinyl-sourcemaps-apply.git"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["vinyl","sourcemaps","source maps","gulp"],"author":{"name":"Florian Reiterer","email":"me@florianreiterer.com"},"license":"ISC","dependencies":{"source-map":"^0.5.1"},"gitHead":"30320c97c112f44ccba02dd73ce5bed1ad4361de","bugs":{"url":"https://github.com/floridoo/vinyl-sourcemaps-apply/issues"},"_id":"vinyl-sourcemaps-apply@0.2.1","_shasum":"ab6549d61d172c2b1b87be5c508d239c8ef87705","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"floridoo","email":"florian.reiterer@gmail.com"},"maintainers":[{"name":"floridoo","email":"florian.reiterer@gmail.com"}],"dist":{"shasum":"ab6549d61d172c2b1b87be5c508d239c8ef87705","size":1357,"noattachment":false,"key":"/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemaps-apply/download/vinyl-sourcemaps-apply-0.2.1.tgz"},"directories":{},"publish_time":1451239017256,"_cnpm_publish_time":1451239017256,"_hasShrinkwrap":false},"0.2.0":{"name":"vinyl-sourcemaps-apply","version":"0.2.0","description":"Apply a source map to a vinyl file, merging it with preexisting source maps","homepage":"http://github.com/floridoo/vinyl-sourcemaps-apply","repository":{"type":"git","url":"git://github.com/floridoo/vinyl-sourcemaps-apply.git"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["vinyl","sourcemaps","source maps","gulp"],"author":{"name":"Florian Reiterer","email":"me@florianreiterer.com"},"license":"ISC","dependencies":{"source-map":"^0.5.1"},"gitHead":"9fa6fc9fd5e710dea840f7f3eca3ae21c0678ecd","bugs":{"url":"https://github.com/floridoo/vinyl-sourcemaps-apply/issues"},"_id":"vinyl-sourcemaps-apply@0.2.0","_shasum":"146cb1a9f17e9ae9a54740f476ee575dd2a52294","_from":".","_npmVersion":"3.3.4","_nodeVersion":"4.1.1","_npmUser":{"name":"floridoo","email":"florian.reiterer@gmail.com"},"maintainers":[{"name":"floridoo","email":"florian.reiterer@gmail.com"}],"dist":{"shasum":"146cb1a9f17e9ae9a54740f476ee575dd2a52294","size":1331,"noattachment":false,"key":"/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemaps-apply/download/vinyl-sourcemaps-apply-0.2.0.tgz"},"directories":{},"publish_time":1443373077765,"_cnpm_publish_time":1443373077765,"_hasShrinkwrap":false},"0.1.4":{"name":"vinyl-sourcemaps-apply","version":"0.1.4","description":"Apply a source map to a vinyl file, merging it with preexisting source maps","homepage":"http://github.com/floridoo/vinyl-sourcemaps-apply","repository":{"type":"git","url":"git://github.com/floridoo/vinyl-sourcemaps-apply.git"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["vinyl","sourcemaps","source maps","gulp"],"author":{"name":"Florian Reiterer","email":"me@florianreiterer.com"},"license":"ISC","dependencies":{"source-map":"^0.1.39"},"gitHead":"2fb0a54278255c138c76ddb651161440287c1261","bugs":{"url":"https://github.com/floridoo/vinyl-sourcemaps-apply/issues"},"_id":"vinyl-sourcemaps-apply@0.1.4","_shasum":"c5fcbd43e2f238423c2dc98bddd6f79b72bc345b","_from":".","_npmVersion":"1.4.27","_npmUser":{"name":"floridoo","email":"florian.reiterer@gmail.com"},"maintainers":[{"name":"floridoo","email":"florian.reiterer@gmail.com"}],"dist":{"shasum":"c5fcbd43e2f238423c2dc98bddd6f79b72bc345b","size":1321,"noattachment":false,"key":"/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemaps-apply/download/vinyl-sourcemaps-apply-0.1.4.tgz"},"directories":{},"publish_time":1411647744449,"_cnpm_publish_time":1411647744449,"_hasShrinkwrap":false},"0.1.3":{"name":"vinyl-sourcemaps-apply","version":"0.1.3","description":"Apply a source map to a vinyl file, merging it with preexisting source maps","homepage":"http://github.com/floridoo/vinyl-sourcemaps-apply","repository":{"type":"git","url":"git://github.com/floridoo/vinyl-sourcemaps-apply.git"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["vinyl","sourcemaps","source maps","gulp"],"author":{"name":"Florian Reiterer","email":"me@florianreiterer.com"},"license":"ISC","dependencies":{"source-map":"^0.1.39"},"gitHead":"1bee9f597cb9d89469f8b8f428ff30c4b7c832fd","bugs":{"url":"https://github.com/floridoo/vinyl-sourcemaps-apply/issues"},"_id":"vinyl-sourcemaps-apply@0.1.3","_shasum":"de117f69e0818dc5ee326f3c435ab58e649f5638","_from":".","_npmVersion":"1.4.27","_npmUser":{"name":"floridoo","email":"florian.reiterer@gmail.com"},"maintainers":[{"name":"floridoo","email":"florian.reiterer@gmail.com"}],"dist":{"shasum":"de117f69e0818dc5ee326f3c435ab58e649f5638","size":1321,"noattachment":false,"key":"/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemaps-apply/download/vinyl-sourcemaps-apply-0.1.3.tgz"},"directories":{},"publish_time":1411137242047,"_cnpm_publish_time":1411137242047,"_hasShrinkwrap":false},"0.1.2":{"name":"vinyl-sourcemaps-apply","version":"0.1.2","description":"Apply a source map to a vinyl file, merging it with preexisting source maps","homepage":"http://github.com/floridoo/vinyl-sourcemaps-apply","repository":{"type":"git","url":"git://github.com/floridoo/vinyl-sourcemaps-apply.git"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["vinyl","sourcemaps","source maps","gulp"],"author":{"name":"Florian Reiterer","email":"me@florianreiterer.com"},"license":"ISC","dependencies":{"source-map":"^0.1.39"},"bugs":{"url":"https://github.com/floridoo/vinyl-sourcemaps-apply/issues"},"_id":"vinyl-sourcemaps-apply@0.1.2","dist":{"shasum":"14b0f9eeb0ccee203d3dc703bc1c43ed6011a2d9","size":1229,"noattachment":false,"key":"/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemaps-apply/download/vinyl-sourcemaps-apply-0.1.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"floridoo","email":"florian.reiterer@gmail.com"},"maintainers":[{"name":"floridoo","email":"florian.reiterer@gmail.com"}],"directories":{},"publish_time":1411086578491,"_cnpm_publish_time":1411086578491,"_hasShrinkwrap":false},"0.1.1":{"name":"vinyl-sourcemaps-apply","version":"0.1.1","description":"Apply a source map to a vinyl file, merging it with preexisting source maps","homepage":"http://github.com/floridoo/vinyl-sourcemaps-apply","repository":{"type":"git","url":"git://github.com/floridoo/vinyl-sourcemaps-apply.git"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["vinyl","sourcemaps","source maps","gulp"],"author":{"name":"Florian Reiterer","email":"me@florianreiterer.com"},"license":"ISC","dependencies":{"source-map":"^0.1.33"},"bugs":{"url":"https://github.com/floridoo/vinyl-sourcemaps-apply/issues"},"_id":"vinyl-sourcemaps-apply@0.1.1","dist":{"shasum":"6435c8d216386466c000ead01065939eb4a83254","size":1124,"noattachment":false,"key":"/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemaps-apply/download/vinyl-sourcemaps-apply-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"floridoo","email":"florian.reiterer@gmail.com"},"maintainers":[{"name":"floridoo","email":"florian.reiterer@gmail.com"}],"directories":{},"publish_time":1399813733304,"_cnpm_publish_time":1399813733304,"_hasShrinkwrap":false},"0.1.0":{"name":"vinyl-sourcemaps-apply","version":"0.1.0","description":"Apply a source map to a vinyl file, merging it with preexisting source maps","homepage":"http://github.com/floridoo/vinyl-sourcemaps-apply","repository":{"type":"git","url":"git://github.com/floridoo/vinyl-sourcemaps-apply.git"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["vinyl","sourcemaps","source maps","gulp"],"author":{"name":"Florian Reiterer","email":"me@florianreiterer.com"},"license":"ISC","dependencies":{"source-map":"^0.1.33"},"bugs":{"url":"https://github.com/floridoo/vinyl-sourcemaps-apply/issues"},"_id":"vinyl-sourcemaps-apply@0.1.0","dist":{"shasum":"e46d5b6ddfae98b214a7b20b5f96d774b248bb4f","size":1174,"noattachment":false,"key":"/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemaps-apply/download/vinyl-sourcemaps-apply-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"floridoo","email":"florian.reiterer@gmail.com"},"maintainers":[{"name":"floridoo","email":"florian.reiterer@gmail.com"}],"directories":{},"publish_time":1399813065450,"_cnpm_publish_time":1399813065450,"_hasShrinkwrap":false}},"readme":"# vinyl-sourcemaps-apply\n\nApply a source map to a vinyl file, merging it with preexisting source maps.\n\n## Usage:\n\n```javascript\nvar applySourceMap = require('vinyl-sourcemaps-apply');\napplySourceMap(vinylFile, sourceMap);\n```\n\n### Example (Gulp plugin):\n\n```javascript\nvar through = require('through2');\nvar applySourceMap = require('vinyl-sourcemaps-apply');\nvar myTransform = require('myTransform');\n\nmodule.exports = function(options) {\n\n  function transform(file, encoding, callback) {\n    // generate source maps if plugin source-map present\n    if (file.sourceMap) {\n      options.makeSourceMaps = true;\n    }\n\n    // do normal plugin logic\n    var result = myTransform(file.contents, options);\n    file.contents = new Buffer(result.code);\n\n    // apply source map to the chain\n    if (file.sourceMap) {\n      applySourceMap(file, result.map);\n    }\n\n    this.push(file);\n    callback();\n  }\n\n  return through.obj(transform);\n};\n```","_attachments":{},"homepage":"http://github.com/floridoo/vinyl-sourcemaps-apply","bugs":{"url":"https://github.com/floridoo/vinyl-sourcemaps-apply/issues"},"license":"ISC"}