| 1 |
{ |
| 2 |
"_id": "source-map-url", |
| 3 |
"_rev": "7-2f032e90f27814b301b77a4275c6b3c0", |
| 4 |
"name": "source-map-url", |
| 5 |
"description": "Tools for working with sourceMappingURL comments.", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "0.4.0" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.1.0": { |
| 11 |
"name": "source-map-url", |
| 12 |
"version": "0.1.0", |
| 13 |
"description": "Tools for working with sourceMappingURL comments.", |
| 14 |
"author": { |
| 15 |
"name": "Simon Lydell" |
| 16 |
}, |
| 17 |
"license": "MIT", |
| 18 |
"main": "source-map-url.js", |
| 19 |
"repository": { |
| 20 |
"type": "git", |
| 21 |
"url": "git://github.com/lydell/source-map-url" |
| 22 |
}, |
| 23 |
"keywords": [ |
| 24 |
"source map", |
| 25 |
"sourceMappingURL", |
| 26 |
"comment", |
| 27 |
"annotation" |
| 28 |
], |
| 29 |
"scripts": { |
| 30 |
"test": "jshint source-map-url.js test/ && mocha" |
| 31 |
}, |
| 32 |
"devDependencies": { |
| 33 |
"mocha": "~1.17.1", |
| 34 |
"chai": "~1.9.0", |
| 35 |
"jshint": "~2.4.3" |
| 36 |
}, |
| 37 |
"testling": { |
| 38 |
"harness": "mocha", |
| 39 |
"files": "test/*.js", |
| 40 |
"browsers": [ |
| 41 |
"ie/8..latest", |
| 42 |
"chrome/latest", |
| 43 |
"firefox/latest", |
| 44 |
"opera/12", |
| 45 |
"opera/latest", |
| 46 |
"safari/5..latest", |
| 47 |
"iphone/6", |
| 48 |
"android-browser/4" |
| 49 |
] |
| 50 |
}, |
| 51 |
"bugs": { |
| 52 |
"url": "https://github.com/lydell/source-map-url/issues" |
| 53 |
}, |
| 54 |
"homepage": "https://github.com/lydell/source-map-url", |
| 55 |
"_id": "[email protected]", |
| 56 |
"dist": { |
| 57 |
"shasum": "afb634c335ca73c95301594137280f233699ee5b", |
| 58 |
"tarball": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.1.0.tgz" |
| 59 |
}, |
| 60 |
"_from": ".", |
| 61 |
"_npmVersion": "1.4.3", |
| 62 |
"_npmUser": { |
| 63 |
"name": "lydell", |
| 64 |
"email": "[email protected]" |
| 65 |
}, |
| 66 |
"maintainers": [ |
| 67 |
{ |
| 68 |
"name": "lydell", |
| 69 |
"email": "[email protected]" |
| 70 |
} |
| 71 |
], |
| 72 |
"directories": {} |
| 73 |
}, |
| 74 |
"0.2.0": { |
| 75 |
"name": "source-map-url", |
| 76 |
"version": "0.2.0", |
| 77 |
"description": "Tools for working with sourceMappingURL comments.", |
| 78 |
"author": { |
| 79 |
"name": "Simon Lydell" |
| 80 |
}, |
| 81 |
"license": "MIT", |
| 82 |
"main": "source-map-url.js", |
| 83 |
"repository": { |
| 84 |
"type": "git", |
| 85 |
"url": "git://github.com/lydell/source-map-url" |
| 86 |
}, |
| 87 |
"keywords": [ |
| 88 |
"source map", |
| 89 |
"sourceMappingURL", |
| 90 |
"comment", |
| 91 |
"annotation" |
| 92 |
], |
| 93 |
"scripts": { |
| 94 |
"test": "jshint source-map-url.js test/ && mocha" |
| 95 |
}, |
| 96 |
"devDependencies": { |
| 97 |
"mocha": "~1.17.1", |
| 98 |
"chai": "~1.9.0", |
| 99 |
"jshint": "~2.4.3" |
| 100 |
}, |
| 101 |
"testling": { |
| 102 |
"harness": "mocha", |
| 103 |
"files": "test/*.js", |
| 104 |
"browsers": [ |
| 105 |
"ie/8..latest", |
| 106 |
"chrome/latest", |
| 107 |
"firefox/latest", |
| 108 |
"opera/12", |
| 109 |
"opera/latest", |
| 110 |
"safari/5", |
| 111 |
"iphone/6", |
| 112 |
"android-browser/4" |
| 113 |
] |
| 114 |
}, |
| 115 |
"bugs": { |
| 116 |
"url": "https://github.com/lydell/source-map-url/issues" |
| 117 |
}, |
| 118 |
"homepage": "https://github.com/lydell/source-map-url", |
| 119 |
"_id": "[email protected]", |
| 120 |
"dist": { |
| 121 |
"shasum": "5c3d205a993c50d443081933718ae4ccac222425", |
| 122 |
"tarball": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.2.0.tgz" |
| 123 |
}, |
| 124 |
"_from": ".", |
| 125 |
"_npmVersion": "1.4.3", |
| 126 |
"_npmUser": { |
| 127 |
"name": "lydell", |
| 128 |
"email": "[email protected]" |
| 129 |
}, |
| 130 |
"maintainers": [ |
| 131 |
{ |
| 132 |
"name": "lydell", |
| 133 |
"email": "[email protected]" |
| 134 |
} |
| 135 |
], |
| 136 |
"directories": {} |
| 137 |
}, |
| 138 |
"0.3.0": { |
| 139 |
"name": "source-map-url", |
| 140 |
"version": "0.3.0", |
| 141 |
"author": { |
| 142 |
"name": "Simon Lydell" |
| 143 |
}, |
| 144 |
"license": "MIT", |
| 145 |
"description": "Tools for working with sourceMappingURL comments.", |
| 146 |
"keywords": [ |
| 147 |
"source map", |
| 148 |
"sourceMappingURL", |
| 149 |
"comment", |
| 150 |
"annotation" |
| 151 |
], |
| 152 |
"main": "source-map-url.js", |
| 153 |
"repository": { |
| 154 |
"type": "git", |
| 155 |
"url": "https://github.com/lydell/source-map-url" |
| 156 |
}, |
| 157 |
"scripts": { |
| 158 |
"lint": "jshint source-map-url.js test/ ", |
| 159 |
"unit": "mocha", |
| 160 |
"test": "npm run lint && npm run unit" |
| 161 |
}, |
| 162 |
"devDependencies": { |
| 163 |
"mocha": "~1.17.1", |
| 164 |
"expect.js": "~0.3.1", |
| 165 |
"jshint": "~2.4.3" |
| 166 |
}, |
| 167 |
"testling": { |
| 168 |
"harness": "mocha", |
| 169 |
"files": "test/*.js", |
| 170 |
"browsers": [ |
| 171 |
"ie/8..latest", |
| 172 |
"chrome/latest", |
| 173 |
"firefox/latest", |
| 174 |
"opera/12", |
| 175 |
"opera/latest", |
| 176 |
"safari/5", |
| 177 |
"iphone/6", |
| 178 |
"android-browser/4" |
| 179 |
] |
| 180 |
}, |
| 181 |
"gitHead": "ffa8f4cd7ad1bc582681f3f222095152e6597f10", |
| 182 |
"bugs": { |
| 183 |
"url": "https://github.com/lydell/source-map-url/issues" |
| 184 |
}, |
| 185 |
"homepage": "https://github.com/lydell/source-map-url", |
| 186 |
"_id": "[email protected]", |
| 187 |
"_shasum": "7ecaf13b57bcd09da8a40c5d269db33799d4aaf9", |
| 188 |
"_from": ".", |
| 189 |
"_npmVersion": "1.4.21", |
| 190 |
"_npmUser": { |
| 191 |
"name": "lydell", |
| 192 |
"email": "[email protected]" |
| 193 |
}, |
| 194 |
"maintainers": [ |
| 195 |
{ |
| 196 |
"name": "lydell", |
| 197 |
"email": "[email protected]" |
| 198 |
} |
| 199 |
], |
| 200 |
"dist": { |
| 201 |
"shasum": "7ecaf13b57bcd09da8a40c5d269db33799d4aaf9", |
| 202 |
"tarball": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.3.0.tgz" |
| 203 |
}, |
| 204 |
"directories": {} |
| 205 |
}, |
| 206 |
"0.4.0": { |
| 207 |
"name": "source-map-url", |
| 208 |
"version": "0.4.0", |
| 209 |
"author": { |
| 210 |
"name": "Simon Lydell" |
| 211 |
}, |
| 212 |
"license": "MIT", |
| 213 |
"description": "Tools for working with sourceMappingURL comments.", |
| 214 |
"keywords": [ |
| 215 |
"source map", |
| 216 |
"sourceMappingURL", |
| 217 |
"comment", |
| 218 |
"annotation" |
| 219 |
], |
| 220 |
"main": "source-map-url.js", |
| 221 |
"repository": { |
| 222 |
"type": "git", |
| 223 |
"url": "git+https://github.com/lydell/source-map-url.git" |
| 224 |
}, |
| 225 |
"scripts": { |
| 226 |
"lint": "jshint source-map-url.js test/ ", |
| 227 |
"unit": "mocha", |
| 228 |
"test": "npm run lint && npm run unit" |
| 229 |
}, |
| 230 |
"devDependencies": { |
| 231 |
"mocha": "~1.17.1", |
| 232 |
"expect.js": "~0.3.1", |
| 233 |
"jshint": "~2.4.3" |
| 234 |
}, |
| 235 |
"testling": { |
| 236 |
"harness": "mocha", |
| 237 |
"files": "test/*.js", |
| 238 |
"browsers": [ |
| 239 |
"ie/8..latest", |
| 240 |
"chrome/latest", |
| 241 |
"firefox/latest", |
| 242 |
"opera/12", |
| 243 |
"opera/latest", |
| 244 |
"safari/5", |
| 245 |
"iphone/6", |
| 246 |
"android-browser/4" |
| 247 |
] |
| 248 |
}, |
| 249 |
"gitHead": "f13c43ca675379922f26c87737fdcbbeac07eb09", |
| 250 |
"bugs": { |
| 251 |
"url": "https://github.com/lydell/source-map-url/issues" |
| 252 |
}, |
| 253 |
"homepage": "https://github.com/lydell/source-map-url#readme", |
| 254 |
"_id": "[email protected]", |
| 255 |
"_shasum": "3e935d7ddd73631b97659956d55128e87b5084a3", |
| 256 |
"_from": ".", |
| 257 |
"_npmVersion": "3.3.6", |
| 258 |
"_nodeVersion": "5.0.0", |
| 259 |
"_npmUser": { |
| 260 |
"name": "lydell", |
| 261 |
"email": "[email protected]" |
| 262 |
}, |
| 263 |
"dist": { |
| 264 |
"shasum": "3e935d7ddd73631b97659956d55128e87b5084a3", |
| 265 |
"tarball": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz" |
| 266 |
}, |
| 267 |
"maintainers": [ |
| 268 |
{ |
| 269 |
"name": "lydell", |
| 270 |
"email": "[email protected]" |
| 271 |
} |
| 272 |
], |
| 273 |
"directories": {} |
| 274 |
} |
| 275 |
}, |
| 276 |
"readme": "Overview [](https://travis-ci.org/lydell/source-map-url)\n========\n\n[](https://ci.testling.com/lydell/source-map-url)\n\nTools for working with sourceMappingURL comments.\n\n```js\nvar sourceMappingURL = require(\"source-map-url\")\n\nvar code = [\n \"!function(){...}();\",\n \"/*# sourceMappingURL=foo.js.map */\"\n].join(\"\\n\")\n\nsourceMappingURL.existsIn(code)\n// true\n\nsourceMappingURL.getFrom(code)\n// foo.js.map\n\ncode = sourceMappingURL.insertBefore(code, \"// License: MIT\\n\")\n// !function(){...}();\n// // License: MIT\n// /*# sourceMappingURL=foo.js.map */\n\ncode = sourceMappingURL.removeFrom(code)\n// !function(){...}();\n// // License: MIT\n\nsourceMappingURL.existsIn(code)\n// false\n\nsourceMappingURL.getFrom(code)\n// null\n\ncode += \"//# sourceMappingURL=/other/file.js.map\"\n// !function(){...}();\n// // License: MIT\n// //# sourceMappingURL=/other/file.js.map\n```\n\n\nInstallation\n============\n\n- `npm install source-map-url`\n- `bower install source-map-url`\n- `component install lydell/source-map-url`\n\nWorks with CommonJS, AMD and browser globals, through UMD.\n\n\nUsage\n=====\n\n### `sourceMappingURL.getFrom(code)` ###\n\nReturns the url of the sourceMappingURL comment in `code`. Returns `null` if\nthere is no such comment.\n\n### `sourceMappingURL.existsIn(code)` ###\n\nReturns `true` if there is a sourceMappingURL comment in `code`, or `false`\notherwise.\n\n### `sourceMappingURL.removeFrom(code)` ###\n\nRemoves the sourceMappingURL comment in `code`. Does nothing if there is no\nsuch comment. Returns the updated `code`.\n\n### `sourceMappingURL.insertBefore(code, string)` ###\n\nInserts `string` before the sourceMappingURL comment in `code`. Appends\n`string` to `code` if there is no such comment.\n\nLets you append something to a file without worrying about burying the\nsourceMappingURL comment (by keeping it at the end of the file).\n\n### `sourceMappingURL.regex` ###\n\nThe regex that is used to match sourceMappingURL comments. It matches both `//`\nand `/**/` comments, thus supporting both JavaScript and CSS.\n\n\nTests\n=====\n\nStart by running `npm test`, which lints the code and runs the test suite in Node.js.\n\nTo run the tests in a browser, run `testling` (`npm install -g testling`) or `testling -u`.\n\n\nLicense\n=======\n\n[The X11 (“MIT”) License](LICENSE).\n", |
| 277 |
"maintainers": [ |
| 278 |
{ |
| 279 |
"name": "lydell", |
| 280 |
"email": "[email protected]" |
| 281 |
} |
| 282 |
], |
| 283 |
"time": { |
| 284 |
"modified": "2015-11-12T21:03:24.856Z", |
| 285 |
"created": "2014-02-22T15:41:32.487Z", |
| 286 |
"0.1.0": "2014-02-22T15:41:32.487Z", |
| 287 |
"0.2.0": "2014-02-23T09:21:34.645Z", |
| 288 |
"0.3.0": "2014-08-16T13:34:25.335Z", |
| 289 |
"0.4.0": "2015-11-12T21:03:24.856Z" |
| 290 |
}, |
| 291 |
"readmeFilename": "readme.md", |
| 292 |
"homepage": "https://github.com/lydell/source-map-url#readme", |
| 293 |
"keywords": [ |
| 294 |
"source map", |
| 295 |
"sourceMappingURL", |
| 296 |
"comment", |
| 297 |
"annotation" |
| 298 |
], |
| 299 |
"repository": { |
| 300 |
"type": "git", |
| 301 |
"url": "git+https://github.com/lydell/source-map-url.git" |
| 302 |
}, |
| 303 |
"author": { |
| 304 |
"name": "Simon Lydell" |
| 305 |
}, |
| 306 |
"bugs": { |
| 307 |
"url": "https://github.com/lydell/source-map-url/issues" |
| 308 |
}, |
| 309 |
"license": "MIT", |
| 310 |
"_attachments": {} |
| 311 |
} |