package.json 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "source-map-index-generator@~0.1.1",
  6. "scope": null,
  7. "escapedName": "source-map-index-generator",
  8. "name": "source-map-index-generator",
  9. "rawSpec": "~0.1.1",
  10. "spec": ">=0.1.1 <0.2.0",
  11. "type": "range"
  12. },
  13. "/mnt/Data/bach/Sites/clameurs.org/sites/all/themes/figureslibres/clameurs/node_modules/jsmin-sourcemap"
  14. ]
  15. ],
  16. "_from": "source-map-index-generator@>=0.1.1 <0.2.0",
  17. "_id": "source-map-index-generator@0.1.2",
  18. "_inCache": true,
  19. "_location": "/source-map-index-generator",
  20. "_npmUser": {
  21. "name": "twolfson",
  22. "email": "todd@twolfson.com"
  23. },
  24. "_npmVersion": "1.2.14",
  25. "_phantomChildren": {
  26. "amdefine": "1.0.1"
  27. },
  28. "_requested": {
  29. "raw": "source-map-index-generator@~0.1.1",
  30. "scope": null,
  31. "escapedName": "source-map-index-generator",
  32. "name": "source-map-index-generator",
  33. "rawSpec": "~0.1.1",
  34. "spec": ">=0.1.1 <0.2.0",
  35. "type": "range"
  36. },
  37. "_requiredBy": [
  38. "/jsmin-sourcemap"
  39. ],
  40. "_resolved": "https://registry.npmjs.org/source-map-index-generator/-/source-map-index-generator-0.1.2.tgz",
  41. "_shasum": "7b921e4edcb7086e480dc5cd64a32c86f9effabd",
  42. "_shrinkwrap": null,
  43. "_spec": "source-map-index-generator@~0.1.1",
  44. "_where": "/mnt/Data/bach/Sites/clameurs.org/sites/all/themes/figureslibres/clameurs/node_modules/jsmin-sourcemap",
  45. "author": {
  46. "name": "Todd Wolfson",
  47. "email": "todd@twolfson.com",
  48. "url": "http://twolfson.com/"
  49. },
  50. "bugs": {
  51. "url": "https://github.com/twolfson/source-map-index-generator/issues"
  52. },
  53. "dependencies": {
  54. "char-props": "~0.1.3",
  55. "source-map": "~0.1.8"
  56. },
  57. "description": "Generate source-maps from index mappings",
  58. "devDependencies": {
  59. "grunt": "~0.3.17"
  60. },
  61. "directories": {},
  62. "dist": {
  63. "shasum": "7b921e4edcb7086e480dc5cd64a32c86f9effabd",
  64. "tarball": "https://registry.npmjs.org/source-map-index-generator/-/source-map-index-generator-0.1.2.tgz"
  65. },
  66. "engines": {
  67. "node": ">= 0.6.0"
  68. },
  69. "homepage": "https://github.com/twolfson/source-map-index-generator",
  70. "keywords": [
  71. "source-map",
  72. "sourcemap",
  73. "char",
  74. "charAt",
  75. "index",
  76. "generator"
  77. ],
  78. "licenses": [
  79. {
  80. "type": "MIT",
  81. "url": "https://github.com/twolfson/source-map-index-generator/blob/master/LICENSE-MIT"
  82. }
  83. ],
  84. "main": "lib/source-map-index-generator",
  85. "maintainers": [
  86. {
  87. "name": "twolfson",
  88. "email": "todd@twolfson.com"
  89. }
  90. ],
  91. "name": "source-map-index-generator",
  92. "optionalDependencies": {},
  93. "readme": "# source-map-index-generator [![Donate on Gittip](http://badgr.co/gittip/twolfson.png)](https://www.gittip.com/twolfson/)\n\nGenerate [source-maps][sourcemap] from index mappings.\n\n[sourcemap]: https://github.com/mozilla/source-map\n\n## Getting Started\nInstall the module with: `npm install source-map-index-generator`\n\n```javascript\n// Load in SourceMapIndexGenerator\nvar SourceMapIndexGenerator = require('source-map-index-generator');\n\n// Data output by node-jsmin2\nvar input = [\n '// First line comment',\n 'var test = {',\n ' a: \"b\"',\n '};'\n ].join('\\n'),\n output = 'var test={a:\"b\"};',\n srcFile = 'input.js',\n coordmap = {\"22\":0,\"23\":1,\"24\":2,\"25\":3,\"26\":4,\"27\":5,\"28\":6,\"29\":7,\"31\":8,\"33\":9,\"37\":10,\"38\":11,\"40\":12,\"41\":13,\"42\":14,\"44\":15,\"45\":16};\n\n// Generate source map via SourceMapIndexGenerator\nvar generator = new SourceMapIndexGenerator(generatorProps);\n\n// Add the index coordinate mapping\ngenerator.addIndexMapping({\n src: srcFile,\n input: input,\n output: output,\n map: coordmap\n});\n\n// Collect our source-map\ngenerator.toString(); // {\"version\":3,\"file\":\"min.js\",\"sources\":[\"input.js\"],\"names\":[],\"mappings\":\"AACA,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAE,CACT,CAAC,CAAE,CAAC,CAAC,CACP,CAAC\"}\n```\n\n## Documentation\nThis module returns a constructor for `SourceMapIndexGenerator`.\n\n### new SourceMapIndexGenerator(startOfSourceMap)\n\nTo create a new one, you must pass an object with the following properties:\n\n* `file`: The filename of the generated source that this source map is\n associated with.\n\n* `sourceRoot`: An optional root for all relative URLs in this source map.\n\n### SourceMapIndexGenerator.prototype.addIndexMapping(mapping)\n\nAdd code with an index based mapping to the file collection.\n\nThe mapping object\nshould have the following properties:\n\n* `src`: Filepath to original src.\n\n* `input`: Unminified JavaScript.\n\n* `output`: Minified JavaScript.\n\n* `map`: Map of character index to character index (number -> number)\n\n* `lineOffset`: An optional line offset to add to mappings.\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/gruntjs/grunt).\n\n## License\nCopyright (c) 2013 Todd Wolfson\nLicensed under the MIT license.\n",
  94. "readmeFilename": "README.md",
  95. "repository": {
  96. "type": "git",
  97. "url": "git://github.com/twolfson/source-map-index-generator.git"
  98. },
  99. "scripts": {
  100. "test": "grunt test"
  101. },
  102. "version": "0.1.2"
  103. }