package.json 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. {
  2. "_args": [
  3. [
  4. "babylon@^7.0.0-beta.47",
  5. "/home/seleznev/project Angular/Quality system/node_modules/jscodeshift"
  6. ]
  7. ],
  8. "_from": "babylon@>=7.0.0-beta.47 <8.0.0",
  9. "_id": "babylon@7.0.0-beta.47",
  10. "_inCache": true,
  11. "_installable": true,
  12. "_location": "/babylon",
  13. "_nodeVersion": "8.10.0",
  14. "_npmOperationalInternal": {
  15. "host": "s3://npm-registry-packages",
  16. "tmp": "tmp/babylon_7.0.0-beta.47_1526342843866_0.3156087471864093"
  17. },
  18. "_npmUser": {
  19. "email": "hi@henryzoo.com",
  20. "name": "hzoo"
  21. },
  22. "_npmVersion": "5.6.0",
  23. "_phantomChildren": {},
  24. "_requested": {
  25. "name": "babylon",
  26. "raw": "babylon@^7.0.0-beta.47",
  27. "rawSpec": "^7.0.0-beta.47",
  28. "scope": null,
  29. "spec": ">=7.0.0-beta.47 <8.0.0",
  30. "type": "range"
  31. },
  32. "_requiredBy": [
  33. "/jscodeshift"
  34. ],
  35. "_resolved": "https://registry.npmjs.org/babylon/-/babylon-7.0.0-beta.47.tgz",
  36. "_shasum": "6d1fa44f0abec41ab7c780481e62fd9aafbdea80",
  37. "_shrinkwrap": null,
  38. "_spec": "babylon@^7.0.0-beta.47",
  39. "_where": "/home/seleznev/project Angular/Quality system/node_modules/jscodeshift",
  40. "author": {
  41. "email": "sebmck@gmail.com",
  42. "name": "Sebastian McKenzie"
  43. },
  44. "bin": {
  45. "babylon": "./bin/babylon.js"
  46. },
  47. "contributors": [
  48. {
  49. "name": "keeyipchan"
  50. },
  51. {
  52. "name": "List of Acorn contributors. Updated before every release."
  53. },
  54. {
  55. "name": "Alistair Braidwood"
  56. },
  57. {
  58. "name": "Andres Suarez"
  59. },
  60. {
  61. "name": "Aparajita Fishman"
  62. },
  63. {
  64. "name": "Arian Stolwijk"
  65. },
  66. {
  67. "name": "Artem Govorov"
  68. },
  69. {
  70. "name": "Brandon Mills"
  71. },
  72. {
  73. "name": "Charles Hughes"
  74. },
  75. {
  76. "name": "Conrad Irwin"
  77. },
  78. {
  79. "name": "David Bonnet"
  80. },
  81. {
  82. "name": "Forbes Lindesay"
  83. },
  84. {
  85. "name": "Gilad Peleg"
  86. },
  87. {
  88. "name": "impinball"
  89. },
  90. {
  91. "name": "Ingvar Stepanyan"
  92. },
  93. {
  94. "name": "Jesse McCarthy"
  95. },
  96. {
  97. "name": "Jiaxing Wang"
  98. },
  99. {
  100. "name": "Joel Kemp"
  101. },
  102. {
  103. "name": "Johannes Herr"
  104. },
  105. {
  106. "name": "Jürg Lehni"
  107. },
  108. {
  109. "name": "Adrian Rakovsky"
  110. },
  111. {
  112. "name": "Kevin Kwok"
  113. },
  114. {
  115. "name": "krator"
  116. },
  117. {
  118. "name": "Marijn Haverbeke"
  119. },
  120. {
  121. "name": "Martin Carlberg"
  122. },
  123. {
  124. "name": "Mathias Bynens"
  125. },
  126. {
  127. "name": "Mathieu 'p01' Henri"
  128. },
  129. {
  130. "name": "Max Schaefer"
  131. },
  132. {
  133. "name": "Max Zerzouri"
  134. },
  135. {
  136. "name": "Mihai Bazon"
  137. },
  138. {
  139. "name": "Mike Rennie"
  140. },
  141. {
  142. "name": "Nick Fitzgerald"
  143. },
  144. {
  145. "name": "Oskar Schöldström"
  146. },
  147. {
  148. "name": "Paul Harper"
  149. },
  150. {
  151. "name": "Peter Rust"
  152. },
  153. {
  154. "name": "PlNG"
  155. },
  156. {
  157. "name": "r-e-d"
  158. },
  159. {
  160. "name": "Rich Harris"
  161. },
  162. {
  163. "name": "Sebastian McKenzie"
  164. },
  165. {
  166. "name": "zsjforcn"
  167. }
  168. ],
  169. "dependencies": {},
  170. "description": "A JavaScript parser",
  171. "devDependencies": {
  172. "@babel/helper-fixtures": "7.0.0-beta.47",
  173. "charcodes": "0.1.0",
  174. "unicode-10.0.0": "^0.7.4"
  175. },
  176. "directories": {},
  177. "dist": {
  178. "fileCount": 6,
  179. "integrity": "sha512-+rq2cr4GDhtToEzKFD6KZZMDBXhjFAr9JjPw9pAppZACeEWqNM294j+NdBzkSHYXwzzBmVjZ3nEVJlOhbR2gOQ==",
  180. "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+iS8CRA9TVsSAnZWagAAl+gP/08b496mUpWwIGvz3tBK\nVc2U1/Y09YvTSYGU/MJpR+0sNffkPuDwQToe1kPXF/9XhH9EUEQPVy/65iTP\np+nNg1Bz2cDSDbFTL5looHpbGq7J0oeYHbnSttE78okRk1ZHZZzyT9Zgv843\nnYQ7PCWrUenCY7hmjvkYoNK/RLOIsinp7FkIcuajBsGPgQzM7U2TreeIjL6M\n76qfuLcOu28W7NaYihxIiR6oiXVUQBjtPxM55NSB/ZBCYz+D5l+Quyun781q\ndw/22F7mcyCHlEAI+QBCLZsnqUpTtQh5rk6vHB50S7QKrBlCasbHjVkuxMQX\nF1nCJIcyPUjkn9qc6e7ylgZcx5ab/hB+brwmZpoVFVRfSuDsW/069izPIo5I\n+JO3mG8DouJg0Ot7GafkAHx+1GVhtcP6++C+r7dAno/babZKrsotOLIgMFIl\naJfqC3HVH+d8TDtdResqFnmVQMqC9KkIgjWstbo2O2sO+FQV3/3AiSdD/56e\nF/WywTeARwlNZ51mldnmZMd4tFLfu57rnDoULoD9wkS7OY5goM00jkDXodEY\nFKAtNwXIo+odezsURH4cdcuCDObu3YsF/sONsbc5QbsyWmsu9FN3G786cjQ0\n/7vfomjCZpB5tU2856IO5IHCgoprycgoryHe7aYhKAW6RMAT0R2u9WTHWT5M\nWWOa\r\n=niVx\r\n-----END PGP SIGNATURE-----\r\n",
  181. "shasum": "6d1fa44f0abec41ab7c780481e62fd9aafbdea80",
  182. "tarball": "https://registry.npmjs.org/babylon/-/babylon-7.0.0-beta.47.tgz",
  183. "unpackedSize": 372815
  184. },
  185. "engines": {
  186. "node": ">=6.0.0"
  187. },
  188. "files": [
  189. "bin",
  190. "lib"
  191. ],
  192. "homepage": "https://babeljs.io/",
  193. "keywords": [
  194. "babel",
  195. "babylon",
  196. "ecmascript",
  197. "javascript",
  198. "parser",
  199. "tc39"
  200. ],
  201. "license": "MIT",
  202. "main": "lib/index.js",
  203. "maintainers": [
  204. {
  205. "name": "danez",
  206. "email": "daniel@tschinder.de"
  207. },
  208. {
  209. "name": "existentialism",
  210. "email": "bng412@gmail.com"
  211. },
  212. {
  213. "name": "hzoo",
  214. "email": "hi@henryzoo.com"
  215. },
  216. {
  217. "name": "jridgewell",
  218. "email": "justin+npm@ridgewell.name"
  219. },
  220. {
  221. "name": "loganfsmyth",
  222. "email": "loganfsmyth@gmail.com"
  223. },
  224. {
  225. "name": "sebmck",
  226. "email": "sebmck@gmail.com"
  227. },
  228. {
  229. "name": "thejameskyle",
  230. "email": "me@thejameskyle.com"
  231. },
  232. {
  233. "name": "xtuc",
  234. "email": "contact@xtuc.fr"
  235. }
  236. ],
  237. "name": "babylon",
  238. "optionalDependencies": {},
  239. "publishConfig": {
  240. "tag": "next"
  241. },
  242. "readme": "<p align=\"center\">\n <img alt=\"babylon\" src=\"https://raw.githubusercontent.com/babel/logo/master/babylon.png\" width=\"700\">\n</p>\n\n<p align=\"center\">\n Babylon is a JavaScript parser used in <a href=\"https://github.com/babel/babel\">Babel</a>.\n</p>\n\n - The latest ECMAScript version enabled by default (ES2017).\n - Comment attachment.\n - Support for JSX, Flow, Typescript.\n - Support for experimental language proposals (accepting PRs for anything at least [stage-0](https://github.com/tc39/proposals/blob/master/stage-0-proposals.md)).\n\n## Credits\n\nHeavily based on [acorn](https://github.com/marijnh/acorn) and [acorn-jsx](https://github.com/RReverser/acorn-jsx),\nthanks to the awesome work of [@RReverser](https://github.com/RReverser) and [@marijnh](https://github.com/marijnh).\n\n## API\n\n### `babylon.parse(code, [options])`\n\n### `babylon.parseExpression(code, [options])`\n\n`parse()` parses the provided `code` as an entire ECMAScript program, while\n`parseExpression()` tries to parse a single Expression with performance in\nmind. When in doubt, use `.parse()`.\n\n### Options\n\n- **allowImportExportEverywhere**: By default, `import` and `export`\n declarations can only appear at a program's top level. Setting this\n option to `true` allows them anywhere where a statement is allowed.\n\n- **allowAwaitOutsideFunction**: By default, `await` use is not allowed\n outside of an async function. Set this to `true` to accept such\n code.\n\n- **allowReturnOutsideFunction**: By default, a return statement at\n the top level raises an error. Set this to `true` to accept such\n code.\n\n- **allowSuperOutsideMethod**: TODO\n\n- **sourceType**: Indicate the mode the code should be parsed in. Can be\n one of `\"script\"`, `\"module\"`, or `\"unambiguous\"`. Defaults to `\"script\"`. `\"unambiguous\"` will make Babylon attempt to _guess_, based on the presence of ES6 `import` or `export` statements. Files with ES6 `import`s and `export`s are considered `\"module\"` and are otherwise `\"script\"`.\n\n- **sourceFilename**: Correlate output AST nodes with their source filename. Useful when generating code and source maps from the ASTs of multiple input files.\n\n- **startLine**: By default, the first line of code parsed is treated as line 1. You can provide a line number to alternatively start with. Useful for integration with other source tools.\n\n- **plugins**: Array containing the plugins that you want to enable.\n\n- **strictMode**: TODO\n\n- **ranges**: Adds a `ranges` property to each node: `[node.start, node.end]`\n\n- **tokens**: Adds all parsed tokens to a `tokens` property on the `File` node\n\n### Output\n\nBabylon generates AST according to [Babel AST format][].\nIt is based on [ESTree spec][] with the following deviations:\n\n> There is now an `estree` plugin which reverts these deviations\n\n- [Literal][] token is replaced with [StringLiteral][], [NumericLiteral][], [BooleanLiteral][], [NullLiteral][], [RegExpLiteral][]\n- [Property][] token is replaced with [ObjectProperty][] and [ObjectMethod][]\n- [MethodDefinition][] is replaced with [ClassMethod][]\n- [Program][] and [BlockStatement][] contain additional `directives` field with [Directive][] and [DirectiveLiteral][]\n- [ClassMethod][], [ObjectProperty][], and [ObjectMethod][] value property's properties in [FunctionExpression][] is coerced/brought into the main method node.\n\nAST for JSX code is based on [Facebook JSX AST][].\n\n[Babel AST format]: https://github.com/babel/babylon/blob/master/ast/spec.md\n[ESTree spec]: https://github.com/estree/estree\n\n[Literal]: https://github.com/estree/estree/blob/master/es5.md#literal\n[Property]: https://github.com/estree/estree/blob/master/es5.md#property\n[MethodDefinition]: https://github.com/estree/estree/blob/master/es2015.md#methoddefinition\n\n[StringLiteral]: https://github.com/babel/babel/tree/master/packages/babylon/ast/spec.md#stringliteral\n[NumericLiteral]: https://github.com/babel/babel/tree/master/packages/babylon/ast/spec.md#numericliteral\n[BooleanLiteral]: https://github.com/babel/babel/tree/master/packages/babylon/ast/spec.md#booleanliteral\n[NullLiteral]: https://github.com/babel/babel/tree/master/packages/babylon/ast/spec.md#nullliteral\n[RegExpLiteral]: https://github.com/babel/babel/tree/master/packages/babylon/ast/spec.md#regexpliteral\n[ObjectProperty]: https://github.com/babel/babel/tree/master/packages/babylon/ast/spec.md#objectproperty\n[ObjectMethod]: https://github.com/babel/babel/tree/master/packages/babylon/ast/spec.md#objectmethod\n[ClassMethod]: https://github.com/babel/babel/tree/master/packages/babylon/ast/spec.md#classmethod\n[Program]: https://github.com/babel/babel/tree/master/packages/babylon/ast/spec.md#programs\n[BlockStatement]: https://github.com/babel/babel/tree/master/packages/babylon/ast/spec.md#blockstatement\n[Directive]: https://github.com/babel/babel/tree/master/packages/babylon/ast/spec.md#directive\n[DirectiveLiteral]: https://github.com/babel/babel/tree/master/packages/babylon/ast/spec.md#directiveliteral\n[FunctionExpression]: https://github.com/babel/babel/tree/master/packages/babylon/ast/spec.md#functionexpression\n\n[Facebook JSX AST]: https://github.com/facebook/jsx/blob/master/AST.md\n\n### Semver\n\nBabylon follows semver in most situations. The only thing to note is that some spec-compliancy bug fixes may be released under patch versions.\n\nFor example: We push a fix to early error on something like [#107](https://github.com/babel/babylon/pull/107) - multiple default exports per file. That would be considered a bug fix even though it would cause a build to fail.\n\n### Example\n\n```javascript\nrequire(\"babylon\").parse(\"code\", {\n // parse in strict mode and allow module declarations\n sourceType: \"module\",\n\n plugins: [\n // enable jsx and flow syntax\n \"jsx\",\n \"flow\"\n ]\n});\n```\n\n### Plugins\n\n| Name | Code Example |\n|------|--------------|\n| `estree` ([repo](https://github.com/estree/estree)) | n/a |\n| `jsx` ([repo](https://facebook.github.io/jsx/)) | `<a attr=\"b\">{s}</a>` |\n| `flow` ([repo](https://github.com/facebook/flow)) | `var a: string = \"\";` |\n| `flowComments` ([docs](https://flow.org/en/docs/types/comments/)) | `/*:: type Foo = {...}; */` |\n| `typescript` ([repo](https://github.com/Microsoft/TypeScript)) | `var a: string = \"\";` |\n| `doExpressions` | `var a = do { if (true) { 'hi'; } };` |\n| `objectRestSpread` ([proposal](https://github.com/tc39/proposal-object-rest-spread)) | `var a = { b, ...c };` |\n| `decorators` (Stage 1) and `decorators2` (Stage 2 [proposal](https://github.com/tc39/proposal-decorators)) | `@a class A {}` |\n| `classProperties` ([proposal](https://github.com/tc39/proposal-class-public-fields)) | `class A { b = 1; }` |\n| `classPrivateProperties` ([proposal](https://github.com/tc39/proposal-private-fields)) | `class A { #b = 1; }` |\n| `classPrivateMethods` ([proposal](https://github.com/tc39/proposal-private-methods)) | `class A { #c() {} }` |\n| `exportDefaultFrom` ([proposal](https://github.com/leebyron/ecmascript-export-default-from)) | `export v from \"mod\"` |\n| `exportNamespaceFrom` ([proposal](https://github.com/leebyron/ecmascript-export-ns-from)) | `export * as ns from \"mod\"` |\n| `asyncGenerators` ([proposal](https://github.com/tc39/proposal-async-iteration)) | `async function*() {}`, `for await (let a of b) {}` |\n| `functionBind` ([proposal](https://github.com/zenparsing/es-function-bind)) | `a::b`, `::console.log` |\n| `functionSent` | `function.sent` |\n| `dynamicImport` ([proposal](https://github.com/tc39/proposal-dynamic-import)) | `import('./guy').then(a)` |\n| `numericSeparator` ([proposal](https://github.com/samuelgoto/proposal-numeric-separator)) | `1_000_000` |\n| `optionalChaining` ([proposal](https://github.com/tc39/proposal-optional-chaining)) | `a?.b` |\n| `importMeta` ([proposal](https://github.com/tc39/proposal-import-meta)) | `import.meta.url` |\n| `bigInt` ([proposal](https://github.com/tc39/proposal-bigint)) | `100n` |\n| `optionalCatchBinding` ([proposal](https://github.com/babel/proposals/issues/7)) | `try {throw 0;} catch{do();}` |\n| `throwExpressions` ([proposal](https://github.com/babel/proposals/issues/23)) | `() => throw new Error(\"\")` |\n| `pipelineOperator` ([proposal](https://github.com/babel/proposals/issues/29)) | `a \\|> b` |\n| `nullishCoalescingOperator` ([proposal](https://github.com/babel/proposals/issues/14)) | `a ?? b` |\n\n### FAQ\n\n#### Will Babylon support a plugin system?\n\nPrevious issues: [#1351](https://github.com/babel/babel/issues/1351), [#6694](https://github.com/babel/babel/issues/6694).\n\nWe currently aren't willing to commit to supporting the API for plugins or the resulting ecosystem (there is already enough work maintaining Babel's own plugin system). It's not clear how to make that API effective, and it would limit our ability to refactor and optimize the codebase.\n\nOur current recommendation for those that want to create their own custom syntax is for users to fork Babylon.\n\nTo consume your custom parser, you can add to your `.babelrc` via its npm package name or require it if using JavaScript,\n\n```json\n{\n \"parserOpts\": {\n \"parser\": \"custom-fork-of-babylon-on-npm-here\"\n }\n}\n```\n",
  243. "readmeFilename": "README.md",
  244. "repository": {
  245. "type": "git",
  246. "url": "https://github.com/babel/babel/tree/master/packages/babylon"
  247. },
  248. "version": "7.0.0-beta.47"
  249. }