{ "_args": [ [ { "raw": "babel-code-frame@^6.26.0", "scope": null, "escapedName": "babel-code-frame", "name": "babel-code-frame", "rawSpec": "^6.26.0", "spec": ">=6.26.0 <7.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/babel-traverse" ] ], "_from": "babel-code-frame@>=6.26.0 <7.0.0", "_id": "babel-code-frame@6.26.0", "_inCache": true, "_location": "/babel-code-frame", "_nodeVersion": "6.9.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/babel-code-frame-6.26.0.tgz_1502898849653_0.8458143274765462" }, "_npmUser": { "name": "hzoo", "email": "hi@henryzoo.com" }, "_npmVersion": "4.6.1", "_phantomChildren": { "escape-string-regexp": "1.0.5", "has-ansi": "2.0.0" }, "_requested": { "raw": "babel-code-frame@^6.26.0", "scope": null, "escapedName": "babel-code-frame", "name": "babel-code-frame", "rawSpec": "^6.26.0", "spec": ">=6.26.0 <7.0.0", "type": "range" }, "_requiredBy": [ "/babel-core", "/babel-traverse" ], "_resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", "_shasum": "63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b", "_shrinkwrap": null, "_spec": "babel-code-frame@^6.26.0", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/babel-traverse", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" }, "dependencies": { "chalk": "^1.1.3", "esutils": "^2.0.2", "js-tokens": "^3.0.2" }, "description": "Generate errors that contain a code frame that point to source locations.", "devDependencies": {}, "directories": {}, "dist": { "shasum": "63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b", "tarball": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz" }, "homepage": "https://babeljs.io/", "license": "MIT", "main": "lib/index.js", "maintainers": [ { "name": "thejameskyle", "email": "me@thejameskyle.com" }, { "name": "sebmck", "email": "sebmck@gmail.com" }, { "name": "danez", "email": "daniel@tschinder.de" }, { "name": "hzoo", "email": "hi@henryzoo.com" }, { "name": "loganfsmyth", "email": "loganfsmyth@gmail.com" } ], "name": "babel-code-frame", "optionalDependencies": {}, "readme": "# babel-code-frame\n\n> Generate errors that contain a code frame that point to source locations.\n\n## Install\n\n```sh\nnpm install --save-dev babel-code-frame\n```\n\n## Usage\n\n```js\nimport codeFrame from 'babel-code-frame';\n\nconst rawLines = `class Foo {\n constructor()\n}`;\nconst lineNumber = 2;\nconst colNumber = 16;\n\nconst result = codeFrame(rawLines, lineNumber, colNumber, { /* options */ });\n\nconsole.log(result);\n```\n\n```sh\n 1 | class Foo {\n> 2 | constructor()\n | ^\n 3 | }\n```\n\nIf the column number is not known, you may pass `null` instead.\n\n## Options\n\n### `highlightCode`\n\n`boolean`, defaults to `false`.\n\nToggles syntax highlighting the code as JavaScript for terminals.\n\n### `linesAbove`\n\n`number`, defaults to `2`.\n\nAdjust the number of lines to show above the error.\n\n### `linesBelow`\n\n`number`, defaults to `3`.\n\nAdjust the number of lines to show below the error.\n\n### `forceColor`\n\n`boolean`, defaults to `false`.\n\nEnable this to forcibly syntax highlight the code as JavaScript (for non-terminals); overrides `highlightCode`.\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "https://github.com/babel/babel/tree/master/packages/babel-code-frame" }, "scripts": {}, "version": "6.26.0" }