Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ast-generator

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ast-generator - npm Package Compare versions

Comparing version 0.0.6 to 0.1.0

dist/index.js

87

package.json
{
"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*
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc