{
  "_args": [
    [
      {
        "raw": "sourcemap-validator@^1.0.5",
        "scope": null,
        "escapedName": "sourcemap-validator",
        "name": "sourcemap-validator",
        "rawSpec": "^1.0.5",
        "spec": ">=1.0.5 <2.0.0",
        "type": "range"
      },
      "/home/travis/build/lukesargeant/ember-sparkline/node_modules/fast-sourcemap-concat"
    ]
  ],
  "_from": "sourcemap-validator@>=1.0.5 <2.0.0",
  "_id": "sourcemap-validator@1.0.6",
  "_inCache": true,
  "_location": "/sourcemap-validator",
  "_nodeVersion": "6.9.1",
  "_npmOperationalInternal": {
    "host": "s3://npm-registry-packages",
    "tmp": "tmp/sourcemap-validator-1.0.6.tgz_1507244838167_0.28963863058015704"
  },
  "_npmUser": {
    "name": "stefanpenner",
    "email": "stefan.penner@gmail.com"
  },
  "_npmVersion": "3.10.8",
  "_phantomChildren": {
    "amdefine": "1.0.1",
    "lodash._escapestringchar": "2.3.0",
    "lodash._reinterpolate": "2.3.0",
    "lodash.defaults": "2.3.0",
    "lodash.escape": "2.3.0",
    "lodash.keys": "2.3.0",
    "lodash.templatesettings": "2.3.0",
    "lodash.values": "2.3.0"
  },
  "_requested": {
    "raw": "sourcemap-validator@^1.0.5",
    "scope": null,
    "escapedName": "sourcemap-validator",
    "name": "sourcemap-validator",
    "rawSpec": "^1.0.5",
    "spec": ">=1.0.5 <2.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/fast-sourcemap-concat"
  ],
  "_resolved": "https://registry.npmjs.org/sourcemap-validator/-/sourcemap-validator-1.0.6.tgz",
  "_shasum": "abd2f1ecdae6a3c46c2c96c5f256705b2147c9c0",
  "_shrinkwrap": null,
  "_spec": "sourcemap-validator@^1.0.5",
  "_where": "/home/travis/build/lukesargeant/ember-sparkline/node_modules/fast-sourcemap-concat",
  "author": {
    "name": "Ben Ng",
    "email": "me@benng.me",
    "url": "http://benng.me"
  },
  "bugs": {
    "url": "https://github.com/ben-ng/sourcemap-validator/issues"
  },
  "contributors": [
    {
      "name": "Jesús Leganés Combarro 'piranna'",
      "email": "piranna@gmail.com",
      "url": "http://pirannafs.blogspot.com.es"
    }
  ],
  "dependencies": {
    "jsesc": "~0.3.x",
    "lodash.foreach": "~2.3.x",
    "lodash.template": "~2.3.x",
    "source-map": "~0.1.x"
  },
  "description": "Map all the things, check all the maps",
  "devDependencies": {
    "jake": "0.7.x",
    "uglify-js": "2.4.x"
  },
  "directories": {},
  "dist": {
    "shasum": "abd2f1ecdae6a3c46c2c96c5f256705b2147c9c0",
    "tarball": "https://registry.npmjs.org/sourcemap-validator/-/sourcemap-validator-1.0.6.tgz"
  },
  "engines": {
    "node": "^0.10 || ^4.5 || 6.* || >= 7.*"
  },
  "gitHead": "c778a916584a83a890198b4a7fcc655594529459",
  "homepage": "https://github.com/ben-ng/sourcemap-validator#readme",
  "keywords": [
    "uglify",
    "browserify",
    "minify",
    "minifyify",
    "validate",
    "validator",
    "sourcemap"
  ],
  "maintainers": [
    {
      "name": "benng",
      "email": "me@benng.me"
    },
    {
      "name": "stefanpenner",
      "email": "stefan.penner@gmail.com"
    }
  ],
  "name": "sourcemap-validator",
  "optionalDependencies": {},
  "readme": "sourcemap-validator\n===================\n\n[![Build Status](https://travis-ci.org/ben-ng/sourcemap-validator.png)](https://travis-ci.org/ben-ng/sourcemap-validator)\n\nMapped all the things? Now validate all the maps.\n\n## Usage\n\n```js\nvalidate(minifiedCode, [sourceMap], [sourceContent]);\n```\n\n * `minifiedCode` is your minified code as a string\n * `sourceMap` is your sourcemap as a JSON string\n    * Optional - If left empty, the inline sourcemap in `minifiedCode` will be used\n * `sourceContent` is a map to the raw source files\n    * Optional - If left empty, the inline `sourceContent` in `sourceMap` will be used\n\n## Examples\n\n```js\nvar validate = require('sourcemap-validator')\n  , fs = require('fs')\n  , assert = require('assert')\n  , raw = fs.readFileSync('jquery.js')\n  , min = fs.readFileSync('jquery.min.js')\n  , map = fs.readFileSync('jquery.min.map');\n\nassert.doesNotThrow(function () {\n  validate({'jquery.js': raw}, min, map);\n}, 'The sourcemap is not valid');\n```\n\n```js\nvar validate = require('sourcemap-validator')\n  , fs = require('fs')\n  , assert = require('assert')\n  , min = fs.readFileSync('bundle.min.js')\n  , map = fs.readFileSync('bundle.min.map');\n\n// Browserify bundles have inline sourceContent in their maps\n// so pass an emtpy object as the first argument.\nassert.doesNotThrow(function () {\n  validate({}, min, map);\n}, 'The sourcemap is not valid');\n```\n\n### validate(sourceContent, minifiedCode, mapJSON)\n\n## Notes\n\nThe sourcemap spec isn't exactly very mature, so this module only aims to give you a Pretty Good™ idea of whether or not your sourcemap is correct.\n\n### Quoted keys in object literals\n\nIf a sourcemap maps \"literal\" without the quotes to column 3, we will consider that valid.\n\n**Example**\n```js\nvar v = {\n  literal: true\n//^-- ok to map {name: literal, column: 3} here\n};\n\nvar t = {\n  \"literal\": true\n//^-- ok to map {name: literal, column: 3} here, even though the token actually appears in column 4\n};\n```\n\nSee the discussion [here](https://github.com/mishoo/UglifyJS2/pull/303#issuecomment-27628362)\n\nHowever, mapping something totally wrong like `\"cookie\"` to that index will throw an exception.\n\n### Missing mappings\n\nThere is no way for the validator to know if you are missing mappings. It can only ensure that the ones you made are sensible. The validator will consider a sourcemap with zero mappings invalid as a sanity check, but if your map at least one sensisble mapping, it is a valid map.\n\n## License\nThe MIT License (MIT)\n\nCopyright (c) 2013 Ben Ng\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git://github.com/ben-ng/sourcemap-validator.git"
  },
  "scripts": {
    "test": "jake test --trace"
  },
  "version": "1.0.6"
}
