canonical
Version:
Canonical code style linter and formatter for JavaScript, SCSS and CSS.
56 lines (55 loc) • 2.39 kB
JSON
{
"_args": [
[
"babel-code-frame@https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.3.13.tgz",
"/Users/gajus/Documents/dev/canonical-code-style/canonical"
]
],
"_from": "babel-code-frame@>=6.3.13 <7.0.0",
"_id": "babel-code-frame@6.3.13",
"_inCache": true,
"_location": "/babel-code-frame",
"_phantomChildren": {},
"_requested": {
"name": "babel-code-frame",
"raw": "babel-code-frame@https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.3.13.tgz",
"rawSpec": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.3.13.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.3.13.tgz",
"type": "remote"
},
"_requiredBy": [
"/babel-traverse"
],
"_resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.3.13.tgz",
"_shasum": "b9ba64debca36a050f1521ac5498f3206c01c276",
"_shrinkwrap": null,
"_spec": "babel-code-frame@https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.3.13.tgz",
"_where": "/Users/gajus/Documents/dev/canonical-code-style/canonical",
"author": {
"email": "sebmck@gmail.com",
"name": "Sebastian McKenzie"
},
"dependencies": {
"babel-runtime": "^5.0.0",
"chalk": "^1.1.0",
"esutils": "^2.0.2",
"js-tokens": "^1.0.1",
"line-numbers": "^0.2.0",
"repeating": "^1.1.3"
},
"description": "Generate errors that contain a code frame that point to source locations.",
"devDependencies": {},
"homepage": "https://babeljs.io/",
"license": "MIT",
"main": "lib/index.js",
"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\n$ npm install 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",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "https://github.com/babel/babel/tree/master/packages/babel-code-frame"
},
"version": "6.3.13"
}