ast-generator
Advanced tools
Comparing version 0.0.6 to 0.1.0
{ | ||
"name": "ast-generator", | ||
"version": "0.0.6", | ||
"description": "Helper to generate a TypeScript or JavaScript module for an arbitrary AST definition from a specification.", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/nvie/ast-generator.git" | ||
}, | ||
"author": "Vincent Driessen", | ||
"homepage": "https://github.com/nvie/ast-generator#readme", | ||
"bugs": { | ||
"url": "https://github.com/nvie/ast-generator/issues" | ||
}, | ||
"main": "./index.js", | ||
"bin": { | ||
"generate-ast": "./cli.js" | ||
}, | ||
"keywords": [ | ||
"ast", | ||
"codegen", | ||
"code", | ||
"generator", | ||
"library", | ||
"tool", | ||
"typescript", | ||
"javascript", | ||
"flow" | ||
], | ||
"dependencies": { | ||
"chalk": "^4.1.1", | ||
"commander": "^7.2.0", | ||
"invariant": "^2.2.4", | ||
"prettier": "^2.3.2" | ||
}, | ||
"types": "./index.d.ts", | ||
"githubUrl": "https://github.com/nvie/ast-generator", | ||
"sideEffects": false | ||
"name": "ast-generator", | ||
"version": "0.1.0", | ||
"description": "Helper to generate a TypeScript or JavaScript module for an arbitrary AST definition from a specification.", | ||
"bin": { | ||
"generate-ast": "./dist/index.js" | ||
}, | ||
"files": [ | ||
"dist/", | ||
"README.md" | ||
], | ||
"scripts": { | ||
"build": "tsup", | ||
"lint": "eslint src/", | ||
"format": "eslint --fix src/ ; prettier --write src/", | ||
"test": "vitest run --coverage" | ||
}, | ||
"author": "Vincent Driessen", | ||
"homepage": "https://github.com/nvie/ast-generator#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/nvie/ast-generator.git" | ||
}, | ||
"keywords": [ | ||
"ast", | ||
"abstract", | ||
"syntax", | ||
"tree", | ||
"code", | ||
"generator", | ||
"grammar", | ||
"typescript" | ||
], | ||
"dependencies": { | ||
"chalk": "<5", | ||
"commander": "^10.0.0", | ||
"prettier": "^2.8.7", | ||
"tiny-invariant": "^1.3.1", | ||
"typescript": "^4.9.5" | ||
}, | ||
"devDependencies": { | ||
"@types/prettier": "^2.7.2", | ||
"@typescript-eslint/eslint-plugin": "^5.58.0", | ||
"@vitest/coverage-istanbul": "^0.29.8", | ||
"eslint": "^8.38.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"tsup": "^6.7.0", | ||
"vitest": "^0.29.8" | ||
}, | ||
"sideEffects": false | ||
} |
[![npm](https://img.shields.io/npm/v/ast-generator.svg)](https://www.npmjs.com/package/ast-generator) | ||
[![Build Status](https://github.com/nvie/ast-generator/workflows/test/badge.svg)](https://github.com/nvie/ast-generator/actions) | ||
TODO: Explain the grammer format | ||
TypeScript code generator for AST nodes based on the following grammar format: | ||
``` | ||
Circle: | ||
cx `number` | ||
cy `number` | ||
r `number` | ||
Rect: | ||
x `number` | ||
y `number` | ||
width `number` | ||
height `number` | ||
@Shape: | ||
| Circle | ||
| Rect | ||
Document: | ||
version `number`? | ||
shapes @Shape* | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
26
18093
5
8
3
492
1
1
+ Addedtiny-invariant@^1.3.1
+ Addedtypescript@^4.9.5
+ Addedcommander@10.0.1(transitive)
+ Addedtiny-invariant@1.3.3(transitive)
+ Addedtypescript@4.9.5(transitive)
- Removedinvariant@^2.2.4
- Removedcommander@7.2.0(transitive)
- Removedinvariant@2.2.4(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
Updatedchalk@<5
Updatedcommander@^10.0.0
Updatedprettier@^2.8.7