Socket
Socket
Sign inDemoInstall

tspoon

Package Overview
Dependencies
Maintainers
9
Versions
410
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tspoon - npm Package Compare versions

Comparing version 1.0.87 to 1.0.88

2

package.json
{
"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

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