{"_id":"vinyl-sourcemap","_rev":"3943993","name":"vinyl-sourcemap","description":"Add/write sourcemaps to/from Vinyl files.","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"time":{"modified":"2025-09-01T01:32:44.000Z","created":"2017-03-14T01:27:35.852Z","2.0.0":"2022-10-17T23:04:20.128Z","1.1.0":"2017-08-01T19:36:06.962Z","1.0.0":"2017-06-18T20:20:06.680Z","0.4.0":"2017-05-03T17:20:47.990Z","0.3.0":"2017-03-23T23:48:57.696Z","0.2.0":"2017-03-20T23:01:15.253Z","0.1.1":"2017-03-16T23:12:02.841Z","0.1.0":"2017-03-14T01:27:35.852Z"},"users":{},"author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"https://gulpjs.com/"},"repository":{"type":"git","url":"git+https://github.com/gulpjs/vinyl-sourcemap.git"},"versions":{"2.0.0":{"name":"vinyl-sourcemap","version":"2.0.0","description":"Add/write sourcemaps to/from Vinyl files.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"https://gulpjs.com/"},"contributors":[{"name":"Robin Venneman"},{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/vinyl-sourcemap.git"},"license":"MIT","engines":{"node":">=10.13.0"},"main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"nyc mocha --async-only"},"dependencies":{"convert-source-map":"^2.0.0","graceful-fs":"^4.2.10","now-and-later":"^3.0.0","streamx":"^2.12.5","vinyl":"^3.0.0","vinyl-contents":"^2.0.0"},"devDependencies":{"eslint":"^7.32.0","eslint-config-gulp":"^5.0.1","eslint-plugin-node":"^11.1.0","expect":"^27.5.1","mocha":"^8.4.0","nyc":"^15.1.0","readable-stream":"^3.6.0"},"nyc":{"extension":[".js"],"reporter":["lcov","text-summary"]},"prettier":{"singleQuote":true},"keywords":["vinyl","sourcemap","gulp"],"gitHead":"3b19cd6b418f3f9791cbedf02d65f46ecb634d80","bugs":{"url":"https://github.com/gulpjs/vinyl-sourcemap/issues"},"homepage":"https://github.com/gulpjs/vinyl-sourcemap#readme","_id":"vinyl-sourcemap@2.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.11.0","dist":{"shasum":"422f410a0ea97cb54cebd698d56a06d7a22e0277","size":5557,"noattachment":false,"key":"/vinyl-sourcemap/-/vinyl-sourcemap-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemap/download/vinyl-sourcemap-2.0.0.tgz"},"_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"directories":{},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vinyl-sourcemap_2.0.0_1666047859871_0.25583869588076236"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-20T18:18:49.113Z","publish_time":1666047860128,"_cnpm_publish_time":1666047860128},"1.1.0":{"name":"vinyl-sourcemap","version":"1.1.0","description":"Add/write sourcemaps to/from Vinyl files.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Robin Venneman"},{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/vinyl-sourcemap.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js","lib/"],"scripts":{"lint":"eslint index.js lib/ test/add.js test/write.js && jscs index.js lib/ test/add.js test/write.js","pretest":"npm run lint","test":"mocha --async-only","cover":"istanbul cover _mocha --report lcovonly","coveralls":"npm run cover && istanbul-coveralls"},"dependencies":{"append-buffer":"^1.0.2","convert-source-map":"^1.5.0","graceful-fs":"^4.1.6","normalize-path":"^2.1.1","now-and-later":"^2.0.0","remove-bom-buffer":"^3.0.0","vinyl":"^2.0.0"},"devDependencies":{"eslint":"^1.10.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","istanbul":"^0.4.3","istanbul-coveralls":"^1.0.3","jscs":"^2.4.0","jscs-preset-gulp":"^1.0.0","mississippi":"^1.3.0","mocha":"^3.2.0"},"keywords":["vinyl","sourcemap","gulp"],"gitHead":"4121a96458f1f78709411b083655c520a679e49e","bugs":{"url":"https://github.com/gulpjs/vinyl-sourcemap/issues"},"homepage":"https://github.com/gulpjs/vinyl-sourcemap#readme","_id":"vinyl-sourcemap@1.1.0","_shasum":"92a800593a38703a8cdb11d8b300ad4be63b3e16","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.48","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"dist":{"shasum":"92a800593a38703a8cdb11d8b300ad4be63b3e16","size":4913,"noattachment":false,"key":"/vinyl-sourcemap/-/vinyl-sourcemap-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemap/download/vinyl-sourcemap-1.1.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vinyl-sourcemap-1.1.0.tgz_1501616166889_0.9932172652333975"},"directories":{},"publish_time":1501616166962,"_cnpm_publish_time":1501616166962,"_hasShrinkwrap":false},"1.0.0":{"name":"vinyl-sourcemap","version":"1.0.0","description":"Add/write sourcemaps to/from Vinyl files.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Robin Venneman"},{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/vinyl-sourcemap.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js","lib/"],"scripts":{"lint":"eslint index.js lib/ test/add.js test/write.js && jscs index.js lib/ test/add.js test/write.js","pretest":"npm run lint","test":"mocha --async-only","cover":"istanbul cover _mocha --report lcovonly","coveralls":"npm run cover && istanbul-coveralls"},"dependencies":{"convert-source-map":"^1.5.0","file-normalize":"^1.1.0","graceful-fs":"^4.1.6","now-and-later":"^2.0.0","vinyl":"^2.0.0"},"devDependencies":{"eslint":"^1.10.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","istanbul":"^0.4.3","istanbul-coveralls":"^1.0.3","jscs":"^2.4.0","jscs-preset-gulp":"^1.0.0","mississippi":"^1.3.0","mocha":"^3.2.0"},"keywords":["vinyl","sourcemap","gulp"],"gitHead":"14ddac31b66d2cbd0c4e9b181ad1490fad56611b","bugs":{"url":"https://github.com/gulpjs/vinyl-sourcemap/issues"},"homepage":"https://github.com/gulpjs/vinyl-sourcemap#readme","_id":"vinyl-sourcemap@1.0.0","_shasum":"1dadb75097dc922c4a4aab92bbaa93c8d9c076bc","_from":".","_npmVersion":"2.15.2","_nodeVersion":"0.10.41","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"dist":{"shasum":"1dadb75097dc922c4a4aab92bbaa93c8d9c076bc","size":4899,"noattachment":false,"key":"/vinyl-sourcemap/-/vinyl-sourcemap-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemap/download/vinyl-sourcemap-1.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vinyl-sourcemap-1.0.0.tgz_1497817206550_0.9947819525841624"},"directories":{},"publish_time":1497817206680,"_hasShrinkwrap":false,"_cnpm_publish_time":1497817206680},"0.4.0":{"name":"vinyl-sourcemap","version":"0.4.0","description":"Add/write sourcemaps to/from Vinyl files.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Robin Venneman"},{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/vinyl-sourcemap.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js","lib/"],"scripts":{"lint":"eslint index.js lib/ test/add.js test/write.js && jscs index.js lib/ test/add.js test/write.js","pretest":"npm run lint","test":"mocha --async-only","cover":"istanbul cover _mocha --report lcovonly","coveralls":"npm run cover && istanbul-coveralls"},"dependencies":{"async":"^2.1.4","convert-source-map":"^1.5.0","file-normalize":"^1.1.0","graceful-fs":"^4.1.6","object.defaults":"^1.0.0","vinyl":"^2.0.0"},"devDependencies":{"eslint":"^1.10.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","istanbul":"^0.4.3","istanbul-coveralls":"^1.0.3","jscs":"^2.4.0","jscs-preset-gulp":"^1.0.0","mississippi":"^1.3.0","mocha":"^3.2.0"},"keywords":["vinyl","sourcemap","gulp"],"gitHead":"2e74f8890b31ac188fcd93a486c620f6e2e97147","bugs":{"url":"https://github.com/gulpjs/vinyl-sourcemap/issues"},"homepage":"https://github.com/gulpjs/vinyl-sourcemap#readme","_id":"vinyl-sourcemap@0.4.0","_shasum":"fabcbf1eaa578894a4f2a5fef5a38fc6767f59d3","_from":".","_npmVersion":"2.15.2","_nodeVersion":"0.10.41","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"dist":{"shasum":"fabcbf1eaa578894a4f2a5fef5a38fc6767f59d3","size":4180,"noattachment":false,"key":"/vinyl-sourcemap/-/vinyl-sourcemap-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemap/download/vinyl-sourcemap-0.4.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/vinyl-sourcemap-0.4.0.tgz_1493832046201_0.22730566142126918"},"directories":{},"publish_time":1493832047990,"_hasShrinkwrap":false,"_cnpm_publish_time":1493832047990},"0.3.0":{"name":"vinyl-sourcemap","version":"0.3.0","description":"Add sourcemaps to vinyl files, extracted from gulp-sourcemaps by Florian Reiterer (https://github.com/floridoo/gulp-sourcemaps)","main":"index.js","scripts":{"test":"mocha --async-only"},"keywords":["vinyl","sourcemap","gulp"],"author":{"name":"Robin Venneman"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gulpjs/vinyl-sourcemap.git"},"devDependencies":{"eslint":"^1.7.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","mocha":"^3.2.0","vinyl-fs":"^2.4.3"},"dependencies":{"acorn":"^4.0.3","async":"^2.1.4","convert-source-map":"1.3.0","css":"^2.2.1","detect-newline":"^2.1.0","graceful-fs":"^4.1.6","object.defaults":"^1.0.0","source-map":"^0.5.6","strip-bom":"^2.0.0","through2":"^2.0.1","vinyl":"^1.2.0"},"gitHead":"4f9eb00f04024cb834b879d29618aa00b7cf7bcb","bugs":{"url":"https://github.com/gulpjs/vinyl-sourcemap/issues"},"homepage":"https://github.com/gulpjs/vinyl-sourcemap#readme","_id":"vinyl-sourcemap@0.3.0","_shasum":"99d54fbadf26fee99fbe79437f81f1462e511e0c","_from":".","_npmVersion":"2.15.2","_nodeVersion":"0.10.41","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"dist":{"shasum":"99d54fbadf26fee99fbe79437f81f1462e511e0c","size":9343,"noattachment":false,"key":"/vinyl-sourcemap/-/vinyl-sourcemap-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemap/download/vinyl-sourcemap-0.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/vinyl-sourcemap-0.3.0.tgz_1490312935591_0.18210251280106604"},"directories":{},"publish_time":1490312937696,"_cnpm_publish_time":1490312937696,"_hasShrinkwrap":false},"0.2.0":{"name":"vinyl-sourcemap","version":"0.2.0","description":"Add sourcemaps to vinyl files, extracted from gulp-sourcemaps by Florian Reiterer (https://github.com/floridoo/gulp-sourcemaps)","main":"index.js","scripts":{"test":"mocha --async-only"},"keywords":["vinyl","sourcemap","gulp"],"author":{"name":"Robin Venneman"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gulpjs/vinyl-sourcemap.git"},"devDependencies":{"eslint":"^1.7.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","mocha":"^3.2.0","vinyl-fs":"^2.4.3"},"dependencies":{"acorn":"^4.0.3","async":"^2.1.4","convert-source-map":"1.3.0","css":"^2.2.1","detect-newline":"^2.1.0","graceful-fs":"^4.1.6","source-map":"^0.5.6","strip-bom":"^2.0.0","through2":"^2.0.1","vinyl":"^1.2.0"},"gitHead":"1e136d873a3b3333f9096f18441d0ff6320c7ce9","bugs":{"url":"https://github.com/gulpjs/vinyl-sourcemap/issues"},"homepage":"https://github.com/gulpjs/vinyl-sourcemap#readme","_id":"vinyl-sourcemap@0.2.0","_shasum":"22ab973196ae0ffc83ffc0d5e05d97288a4b9019","_from":".","_npmVersion":"2.15.2","_nodeVersion":"0.10.41","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"dist":{"shasum":"22ab973196ae0ffc83ffc0d5e05d97288a4b9019","size":9353,"noattachment":false,"key":"/vinyl-sourcemap/-/vinyl-sourcemap-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemap/download/vinyl-sourcemap-0.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/vinyl-sourcemap-0.2.0.tgz_1490050873448_0.6290511914994568"},"directories":{},"publish_time":1490050875253,"_cnpm_publish_time":1490050875253,"_hasShrinkwrap":false},"0.1.1":{"name":"vinyl-sourcemap","version":"0.1.1","description":"Add sourcemaps to vinyl files, extracted from gulp-sourcemaps by Florian Reiterer (https://github.com/floridoo/gulp-sourcemaps)","main":"index.js","scripts":{"test":"mocha --async-only"},"keywords":["vinyl","sourcemap","gulp"],"author":{"name":"Robin Venneman"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gulpjs/vinyl-sourcemap.git"},"devDependencies":{"eslint":"^1.7.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","mocha":"^3.2.0","vinyl-fs":"^2.4.3"},"dependencies":{"acorn":"^4.0.3","async":"^2.1.4","convert-source-map":"1.3.0","css":"^2.2.1","detect-newline":"^2.1.0","graceful-fs":"^4.1.6","source-map":"^0.5.6","strip-bom":"^2.0.0","through2":"^2.0.1","vinyl":"^1.2.0"},"gitHead":"b401aac6b55d6528f8020d64408289783a216f7f","bugs":{"url":"https://github.com/gulpjs/vinyl-sourcemap/issues"},"homepage":"https://github.com/gulpjs/vinyl-sourcemap#readme","_id":"vinyl-sourcemap@0.1.1","_shasum":"acba01ddeed92e37df2aea217335d62352af2f5d","_from":".","_npmVersion":"2.15.2","_nodeVersion":"0.10.41","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"dist":{"shasum":"acba01ddeed92e37df2aea217335d62352af2f5d","size":9365,"noattachment":false,"key":"/vinyl-sourcemap/-/vinyl-sourcemap-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemap/download/vinyl-sourcemap-0.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/vinyl-sourcemap-0.1.1.tgz_1489705922588_0.9214664220344275"},"directories":{},"publish_time":1489705922841,"_cnpm_publish_time":1489705922841,"_hasShrinkwrap":false},"0.1.0":{"name":"vinyl-sourcemap","version":"0.1.0","description":"Add sourcemaps to vinyl files, extracted from gulp-sourcemaps by Florian Reiterer (https://github.com/floridoo/gulp-sourcemaps)","main":"index.js","scripts":{"test":"mocha --async-only"},"keywords":["vinyl","sourcemap","gulp"],"author":{"name":"Robin Venneman"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gulpjs/vinyl-sourcemap.git"},"devDependencies":{"eslint":"^1.7.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","mocha":"^3.2.0","strip-bom":"^2.0.0","vinyl-fs":"^2.4.3"},"dependencies":{"acorn":"^4.0.3","async":"^2.1.4","convert-source-map":"1.3.0","css":"^2.2.1","detect-newline":"^2.1.0","graceful-fs":"^4.1.6","source-map":"^0.5.6","through2":"^2.0.1","vinyl":"^1.2.0"},"gitHead":"5ca4d06bed1e5680c224cc4ea8c9849fdede9bfe","bugs":{"url":"https://github.com/gulpjs/vinyl-sourcemap/issues"},"homepage":"https://github.com/gulpjs/vinyl-sourcemap#readme","_id":"vinyl-sourcemap@0.1.0","_shasum":"0236daa651ea7a713dbcd50fafc68765013b263a","_from":".","_npmVersion":"2.15.2","_nodeVersion":"0.10.41","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"dist":{"shasum":"0236daa651ea7a713dbcd50fafc68765013b263a","size":9364,"noattachment":false,"key":"/vinyl-sourcemap/-/vinyl-sourcemap-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-sourcemap/download/vinyl-sourcemap-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/vinyl-sourcemap-0.1.0.tgz_1489454855615_0.5760775560047477"},"directories":{},"publish_time":1489454855852,"_cnpm_publish_time":1489454855852,"_hasShrinkwrap":false}},"readme":"<p align=\"center\">\n  <a href=\"https://gulpjs.com\">\n    <img height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\">\n  </a>\n</p>\n\n# vinyl-sourcemap\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]\n\nAdd/write sourcemaps to/from Vinyl files.\n\n## Usage\n\n```js\nsourcemap.add(file, function (err, updatedFile) {\n  // updatedFile will have a .sourceMap property\n});\n\n// The 2nd argument can be given as a path string\nsourcemap.write(file, './maps', function (err, updatedFile, sourcemapFile) {\n  // sourcemapFile will be a Vinyl file to be written to some location\n  // updatedFile will have the .contents property updated with a sourceMappingURL that resolves to sourcemapFile\n});\n\n// If not defined, the sourcemap is inlined\nsourcemap.write(file, function (err, updatedFile, sourcemapFile) {\n  // sourcemapFile is undefined\n  // updatedFile will have the .contents property updated with a sourceMappingURL that is an inlined sourcemap\n});\n```\n\n## API\n\n### `sourcemap.add(file, callback)`\n\nTakes a [Vinyl][vinyl] `file` object and a `callback` function. It attempts to parse an inline sourcemap or load an external sourcemap for the file. If a valid sourcemap is found, the `sources` & `sourcesContent` properties are resolved to actual files (if possible) and a fully resolved sourcemap is attached as `file.sourceMap`. If a sourcemap is not found, a stub sourcemap is generated for the file and attached as `file.sourceMap`.\n\nOnce all resolution is complete, the `callback(err, updatedFile)` is called with the `updatedFile`. If an error occurs, it will be passed as `err` and `updatedFile` will be undefined. **Note:** The original file is mutated but `updatedFile` is passed to the callback as a convenience.\n\nIf the `file` is not a Vinyl object or the contents are streaming, an Error will be passed to the `callback`.\n\nIf the `file` has a `.sourceMap` property or the contents are null, the `callback` will be called immediately without mutation to the file.\n\nAll filesystem operations are optional & non-fatal so any errors will not be bubbled to the `callback`.\n\n### `sourcemap.write(file, [outputPath,] callback)`\n\nTakes a [Vinyl][vinyl] `file` object, (optionally) an `outputPath` string and a `callback` function.\n\nIf `outputPath` is not passed, an inline sourcemap will be generated from the `file.sourceMap` property and appended to the `file.contents`. Once the inline sourcemap is appended, the `callback(err, updatedFile)` is called with the `updatedFile`. If an error occurs, it will be passed as `err` and `updatedFile` will be undefined. **Note:** The original file is mutated but `updatedFile` is passed to the callback as a convenience.\n\nIf `outputPath` is passed, a new Vinyl file will be generated using `file.cwd` and `file.base` from the original file, the path to the external sourcemap, and the `file.sourceMap` (as contents). The external location will be appended to the `file.contents` of the original file. Once the new file is created and location appended, the `callback(err, updatedFile, sourcemapFile)` is called with the `updatedFile` and the `sourcemapFile`. If an error occurs, it will be passed as `err` and `updatedFile`/`sourcemapFile` will be undefined. **Note:** The original file is mutated but `updatedFile` is passed to the callback as a convenience.\n\nIf the `file` is not a Vinyl object or the contents are streaming, an Error will be passed to the `callback`.\n\nIf the `file` doesn't have a `.sourceMap` property or the contents are null, the `callback` will be called immediately without mutation to the file.\n\n## License\n\nMIT\n\n<!-- prettier-ignore-start -->\n[downloads-image]: https://img.shields.io/npm/dm/vinyl-sourcemap.svg?style=flat-square\n[npm-url]: https://npmjs.com/package/vinyl-sourcemap\n[npm-image]: https://img.shields.io/npm/v/vinyl-sourcemap.svg?style=flat-square\n\n[ci-url]: https://github.com/gulpjs/vinyl-sourcemap/actions?query=workflow:dev\n[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/vinyl-sourcemap/dev?style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/vinyl-sourcemap\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/vinyl-sourcemap/master.svg?style=flat-square\n<!-- prettier-ignore-end -->\n\n<!-- prettier-ignore-start -->\n[vinyl]: https://github.com/gulpjs/vinyl\n<!-- prettier-ignore-end -->\n","_attachments":{},"homepage":"https://github.com/gulpjs/vinyl-sourcemap#readme","bugs":{"url":"https://github.com/gulpjs/vinyl-sourcemap/issues"},"license":"MIT"}