118 lines
3.9 KiB
JSON
118 lines
3.9 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "babel-traverse@^6.26.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "babel-traverse",
|
||
|
"name": "babel-traverse",
|
||
|
"rawSpec": "^6.26.0",
|
||
|
"spec": ">=6.26.0 <7.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/babel-template"
|
||
|
]
|
||
|
],
|
||
|
"_from": "babel-traverse@>=6.26.0 <7.0.0",
|
||
|
"_id": "babel-traverse@6.26.0",
|
||
|
"_inCache": true,
|
||
|
"_location": "/babel-traverse",
|
||
|
"_nodeVersion": "6.9.0",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "s3://npm-registry-packages",
|
||
|
"tmp": "tmp/babel-traverse-6.26.0.tgz_1502898856222_0.6180560656357557"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "hzoo",
|
||
|
"email": "hi@henryzoo.com"
|
||
|
},
|
||
|
"_npmVersion": "4.6.1",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "babel-traverse@^6.26.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "babel-traverse",
|
||
|
"name": "babel-traverse",
|
||
|
"rawSpec": "^6.26.0",
|
||
|
"spec": ">=6.26.0 <7.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/babel-core",
|
||
|
"/babel-helper-call-delegate",
|
||
|
"/babel-helper-explode-assignable-expression",
|
||
|
"/babel-helper-function-name",
|
||
|
"/babel-helper-remap-async-to-generator",
|
||
|
"/babel-helper-replace-supers",
|
||
|
"/babel-plugin-transform-es2015-block-scoping",
|
||
|
"/babel-plugin-transform-es2015-classes",
|
||
|
"/babel-plugin-transform-es2015-parameters",
|
||
|
"/babel-template",
|
||
|
"/istanbul-lib-instrument"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz",
|
||
|
"_shasum": "46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "babel-traverse@^6.26.0",
|
||
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/babel-template",
|
||
|
"author": {
|
||
|
"name": "Sebastian McKenzie",
|
||
|
"email": "sebmck@gmail.com"
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"babel-code-frame": "^6.26.0",
|
||
|
"babel-messages": "^6.23.0",
|
||
|
"babel-runtime": "^6.26.0",
|
||
|
"babel-types": "^6.26.0",
|
||
|
"babylon": "^6.18.0",
|
||
|
"debug": "^2.6.8",
|
||
|
"globals": "^9.18.0",
|
||
|
"invariant": "^2.2.2",
|
||
|
"lodash": "^4.17.4"
|
||
|
},
|
||
|
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",
|
||
|
"devDependencies": {
|
||
|
"babel-generator": "^6.26.0"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"shasum": "46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee",
|
||
|
"tarball": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-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-traverse",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# babel-traverse\n\n> babel-traverse maintains the overall tree state, and is responsible for replacing, removing, and adding nodes.\n\n## Install\n\n```sh\n$ npm install --save babel-traverse\n```\n\n## Usage\n\nWe can use it alongside Babylon to traverse and update nodes:\n\n```js\nimport * as babylon from \"babylon\";\nimport traverse from \"babel-traverse\";\n\nconst code = `function square(n) {\n return n * n;\n}`;\n\nconst ast = babylon.parse(code);\n\ntraverse(ast, {\n enter(path) {\n if (path.isIdentifier({ name: \"n\" })) {\n path.node.name = \"x\";\n }\n }\n});\n```\n[:book: **Read the full docs here**](https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md#babel-traverse)\n",
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "https://github.com/babel/babel/tree/master/packages/babel-traverse"
|
||
|
},
|
||
|
"scripts": {},
|
||
|
"version": "6.26.0"
|
||
|
}
|