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

@putout/engine-parser

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/engine-parser

putout parser

  • 1.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22K
increased by17.44%
Maintainers
1
Weekly downloads
 
Created
Source

putout-engine-parser NPM version Dependency Status

putout plugin adds ability to find and remove debugger statement.

Install

npm i @putout/engine-parser

API

print(ast)

Print code from ast

parse(code)

You can add default options for custom parser you use.

Supported parsers:

Example

parse.ast(template)

create node using memoization.

parse.ast.fresh(template)

create node without memoization.

Any parser should be installed before use, but you can be shure that @babel/parse always installed.

const {parse} = require('@putout/engin-parser');
const parser = 'acorn';

const code = parse('var t = "hello"');

License

MIT

Keywords

FAQs

Package last updated on 01 Nov 2019

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

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