{
  "manifest": {
    "name": "sourcemap-codec",
    "version": "1.4.8",
    "description": "Encode/decode sourcemap mappings",
    "main": "dist/sourcemap-codec.umd.js",
    "module": "dist/sourcemap-codec.es.js",
    "types": "dist/types/sourcemap-codec.d.ts",
    "scripts": {
      "test": "mocha",
      "build": "rm -rf dist && rollup -c && tsc",
      "pretest": "npm run build",
      "prepublish": "npm test",
      "lint": "eslint src",
      "pretest-coverage": "npm run build",
      "test-coverage": "rm -rf coverage/* && istanbul cover --report json node_modules/.bin/_mocha -- -u exports -R spec test/test.js",
      "posttest-coverage": "remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped.json -b dist && remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped.lcov -t lcovonly -b dist && remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped -t html -b dist",
      "ci": "npm run test-coverage && codecov < coverage/coverage-remapped.lcov"
    },
    "repository": {
      "type": "git",
      "url": "https://github.com/Rich-Harris/sourcemap-codec"
    },
    "keywords": [
      "sourcemap",
      "vlq"
    ],
    "author": {
      "name": "Rich Harris"
    },
    "license": "MIT",
    "bugs": {
      "url": "https://github.com/Rich-Harris/sourcemap-codec/issues"
    },
    "homepage": "https://github.com/Rich-Harris/sourcemap-codec",
    "dependencies": {},
    "devDependencies": {
      "codecov.io": "^0.1.6",
      "console-group": "^0.3.3",
      "eslint": "^6.0.1",
      "eslint-plugin-import": "^2.18.0",
      "istanbul": "^0.4.5",
      "mocha": "^6.1.4",
      "remap-istanbul": "^0.13.0",
      "rollup": "^1.16.4",
      "rollup-plugin-node-resolve": "^5.2.0",
      "rollup-plugin-typescript": "^1.0.1",
      "typescript": "^3.5.2"
    },
    "files": [
      "dist/*.js",
      "dist/*.js.map",
      "dist/**/*.d.ts",
      "README.md"
    ],
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-sourcemap-codec-1.4.8-ea804bd94857402e6992d05a38ef1ae35a9ab4c4-integrity/node_modules/sourcemap-codec/package.json",
    "readmeFilename": "README.md",
    "readme": "# sourcemap-codec\n\nEncode/decode the `mappings` property of a [sourcemap](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit).\n\n\n## Why?\n\nSourcemaps are difficult to generate and manipulate, because the `mappings` property – the part that actually links the generated code back to the original source – is encoded using an obscure method called [Variable-length quantity](https://en.wikipedia.org/wiki/Variable-length_quantity). On top of that, each segment in the mapping contains offsets rather than absolute indices, which means that you can't look at a segment in isolation – you have to understand the whole sourcemap.\n\nThis package makes the process slightly easier.\n\n\n## Installation\n\n```bash\nnpm install sourcemap-codec\n```\n\n\n## Usage\n\n```js\nimport { encode, decode } from 'sourcemap-codec';\n\nvar decoded = decode( ';EAEEA,EAAE,EAAC,CAAE;ECQY,UACC' );\n\nassert.deepEqual( decoded, [\n\t// the first line (of the generated code) has no mappings,\n\t// as shown by the starting semi-colon (which separates lines)\n\t[],\n\n\t// the second line contains four (comma-separated) segments\n\t[\n\t\t// segments are encoded as you'd expect:\n\t\t// [ generatedCodeColumn, sourceIndex, sourceCodeLine, sourceCodeColumn, nameIndex ]\n\n\t\t// i.e. the first segment begins at column 2, and maps back to the second column\n\t\t// of the second line (both zero-based) of the 0th source, and uses the 0th\n\t\t// name in the `map.names` array\n\t\t[ 2, 0, 2, 2, 0 ],\n\n\t\t// the remaining segments are 4-length rather than 5-length,\n\t\t// because they don't map a name\n\t\t[ 4, 0, 2, 4 ],\n\t\t[ 6, 0, 2, 5 ],\n\t\t[ 7, 0, 2, 7 ]\n\t],\n\n\t// the final line contains two segments\n\t[\n\t\t[ 2, 1, 10, 19 ],\n\t\t[ 12, 1, 11, 20 ]\n\t]\n]);\n\nvar encoded = encode( decoded );\nassert.equal( encoded, ';EAEEA,EAAE,EAAC,CAAE;ECQY,UACC' );\n```\n\n\n# License\n\nMIT\n",
    "licenseText": "The MIT License\n\nCopyright (c) 2015 Rich Harris\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",
    "hash": "ea804bd94857402e6992d05a38ef1ae35a9ab4c4",
    "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==",
    "registry": "npm",
    "packageName": "sourcemap-codec",
    "cacheIntegrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA== sha1-6oBL2UhXQC5pktBaOO8a41qatMQ="
  },
  "registry": "npm",
  "hash": "ea804bd94857402e6992d05a38ef1ae35a9ab4c4"
}