Comparing version 1.0.87 to 1.0.88
{ | ||
"private": false, | ||
"name": "tspoon", | ||
"version": "1.0.87", | ||
"version": "1.0.88", | ||
"description": "AST visitors for Typescript", | ||
@@ -6,0 +6,0 @@ "main": "./dist/src/index.js", |
@@ -10,3 +10,3 @@ # Tspoon | ||
Typescript transpilation is useally ```source -> AST -> target```. Tspoon uses [Typescript's compiler API](https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API) to allow pluggable pieces of logic (called ```visitor```) to modify the [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) before invoking the Typescript transpiler. The process will look like this ```source -> AST -visitors-> AST -> target```. This technique enables early optimizations and error detection for custom language features. | ||
Typescript transpilation is usually `source -> AST -> target`. Tspoon uses [Typescript's compiler API](https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API) to allow pluggable pieces of logic (called ```visitor```) to modify the [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) before invoking the Typescript transpiler. The process will look like this `source -> AST -visitors-> AST -> target`. This technique enables early optimizations and error detection for custom language features. | ||
@@ -22,5 +22,5 @@ In addition, Tspoon's validation api supports pre-validation code changes, allowing the developer to bypass otherwise unavoidable TypeScript diagnostics. | ||
```npm install tspoon``` | ||
`npm install tspoon` | ||
Currently, Tspoon exposes only a programmatic API. Meaning, it is used by other javacript code invoking it's ```transpile``` and ```validate``` methods. | ||
Currently, Tspoon exposes only a programmatic API. Meaning, it is used by other javacript code invoking it's `transpile` and `validate` methods. | ||
#### tspoon.transpile(content, config) | ||
@@ -27,0 +27,0 @@ content is a string containing the code to transpile, and config defines the visitors and transpilation parameters. |
Sorry, the diff of this file is not supported yet
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
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
1715290