{ "_args": [ [ { "raw": "source-list-map@^0.1.7", "scope": null, "escapedName": "source-list-map", "name": "source-list-map", "rawSpec": "^0.1.7", "spec": ">=0.1.7 <0.2.0", "type": "range" }, "D:\\100-Projects\\100-AIAHTML5\\400-SOURCECODE\\AIAHTML5.Admin\\node_modules\\css-loader" ] ], "_from": "source-list-map@>=0.1.7 <0.2.0", "_id": "source-list-map@0.1.8", "_inCache": true, "_location": "/source-list-map", "_nodeVersion": "6.9.1", "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/source-list-map-0.1.8.tgz_1484123265459_0.8772335308603942" }, "_npmUser": { "name": "sokra", "email": "tobias.koppers@googlemail.com" }, "_npmVersion": "3.10.8", "_phantomChildren": {}, "_requested": { "raw": "source-list-map@^0.1.7", "scope": null, "escapedName": "source-list-map", "name": "source-list-map", "rawSpec": "^0.1.7", "spec": ">=0.1.7 <0.2.0", "type": "range" }, "_requiredBy": [ "/css-loader", "/webpack-sources" ], "_resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-0.1.8.tgz", "_shasum": "c550b2ab5427f6b3f21f5afead88c4f5587b2106", "_shrinkwrap": null, "_spec": "source-list-map@^0.1.7", "_where": "D:\\100-Projects\\100-AIAHTML5\\400-SOURCECODE\\AIAHTML5.Admin\\node_modules\\css-loader", "author": { "name": "Tobias Koppers @sokra" }, "bugs": { "url": "https://github.com/webpack/source-list-map/issues" }, "dependencies": {}, "description": "Fast line to line SourceMap generator.", "devDependencies": { "mocha": "^2.2.1", "should": "^5.2.0" }, "directories": {}, "dist": { "shasum": "c550b2ab5427f6b3f21f5afead88c4f5587b2106", "tarball": "https://registry.npmjs.org/source-list-map/-/source-list-map-0.1.8.tgz" }, "files": [ "lib" ], "gitHead": "536858b825d0b3f4d6ba3e7c5becadb78199e309", "homepage": "https://github.com/webpack/source-list-map", "keywords": [ "source-map" ], "license": "MIT", "main": "lib/index.js", "maintainers": [ { "name": "sokra", "email": "tobias.koppers@googlemail.com" } ], "name": "source-list-map", "optionalDependencies": {}, "readme": "# source-list-map\r\n\r\n## API\r\n\r\n### Example\r\n\r\n``` js\r\nvar SourceListMap = require(\"source-list-map\").SourceListMap;\r\n\r\n// Create a new map\r\nvar map = new SourceListMap();\r\n\r\n// Add generated code that is map line to line to some soure\r\nmap.add(\"Generated\\ncode1\\n\", \"source-code.js\", \"Orginal\\nsource\");\r\n\r\n// Add generated code that isn't mapped\r\nmap.add(\"Generated\\ncode2\\n\");\r\n\r\n// Get SourceMap and generated source\r\nmap.toStringWithSourceMap({ file: \"generated-code.js\" });\r\n// {\r\n// source: 'Generated\\ncode1\\nGenerated\\ncode2\\n',\r\n// map: {\r\n// version: 3,\r\n// file: 'generated-code.js',\r\n// sources: [ 'source-code.js' ],\r\n// sourcesContent: [ 'Orginal\\nsource' ],\r\n// mappings: 'AAAA;AACA;;;'\r\n// }\r\n// }\r\n\r\n// Convert existing SourceMap into SourceListMap\r\n// (Only the first mapping per line is preserved)\r\nvar fromStringWithSourceMap = require(\"source-list-map\").fromStringWithSourceMap;\r\nvar map = fromStringWithSourceMap(\"Generated\\ncode\", { version: 3, ... });\r\n\r\n```\r\n\r\n### `new SourceListMap()`\r\n\r\n### `SourceListMap.prototype.add`\r\n\r\n``` js\r\nSourceListMap.prototype.add(generatedCode: string)\r\nSourceListMap.prototype.add(generatedCode: string, source: string, originalSource: string)\r\nSourceListMap.prototype.add(sourceListMap: SourceListMap)\r\n```\r\n\r\nAppend some stuff.\r\n\r\n### `SourceListMap.prototype.prepend`\r\n\r\n``` js\r\nSourceListMap.prototype.prepend(generatedCode: string)\r\nSourceListMap.prototype.prepend(generatedCode: string, source: string, originalSource: string)\r\nSourceListMap.prototype.prepend(sourceListMap: SourceListMap)\r\n```\r\n\r\nPrepend some stuff.\r\n\r\n### `SourceListMap.prototype.toString()`\r\n\r\nGet generated code.\r\n\r\n### `SourceListMap.prototype.toStringWithSourceMap`\r\n\r\n``` js\r\nSourceListMap.prototype.toStringWithSourceMap(options: object)\r\n```\r\n\r\nGet generated code and SourceMap. `options` can contains `file` property which defines the `file` property of the SourceMap.\r\n\r\n### `SourceListMap.prototype.mapGeneratedCode`\r\n\r\n``` js\r\nSourceListMap.prototype.mapGeneratedCode(fn: function)\r\n```\r\n\r\nApplies `fn` to each generated code block. The returned value is set as new generated code. The number of lines must not change.\r\n\r\n## Test\r\n\r\n[![Build Status](https://travis-ci.org/webpack/source-list-map.svg)](https://travis-ci.org/webpack/source-list-map)\r\n\r\n## License\r\n\r\nCopyright (c) 2015 Tobias Koppers\r\n\r\nMIT (http://www.opensource.org/licenses/mit-license.php)", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/webpack/source-list-map.git" }, "scripts": { "test": "mocha -R spec" }, "version": "0.1.8" }