New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

reflect-builder

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reflect-builder

Default AST builder for reflect.js

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

This is the default builder used in reflect.js and is also used as a base for others, such as the tree builder. This builder is useful since the Reflect API doesn't let you change individual node behavior -- you must supply a whole new builder. This builder lets you change only the nodes you care about, leaving the rest as their default behavior.

Example:

var Reflect = require('reflect');
var builder = require('reflect-builder');

// [modificaitons to builder functions here]

var soure = "var a = b + c;";
var ast = Reflect.parse(source, {builder: builder});

Node Properties

See the Mozilla docs.

License

MIT X License

FAQs

Package last updated on 06 Aug 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts