0.3.0 • Published 8 months ago

@apm-js-collab/code-transformer v0.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

@apm-js-collab/code-transformer

This is a temporary fork of DataDog/orchestrion-js. We intend all changes to be upstreamed to the original repository,

This is a library for instrumenting Node.js libraries at build or load time.

It provides VisitMut implementations for SWC's AST nodes, which can be used to insert tracing code into matching functions. It can be used in SWC plugins, or anything else that mutates JavaScript ASTs using SWC.

@apm-js-collab/code-transformer is built as a JavaScript module, which can be used from Node.js.

To build the JavaScript module:

  • Ensure you have Rust installed
  • Install the wasm toolchain rustup target add wasm32-unknown-unknown --toolchain stable
  • Install dependencies and build the module npm install && npm run build

Contributing

See CONTRIBUTING.md

License

See LICENSE

0.3.0

8 months ago

0.2.1

8 months ago

0.2.0

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago