Socket
Socket
Sign inDemoInstall

acorn-import-meta

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    acorn-import-meta

Support for import.meta in acorn


Version published
Weekly downloads
17K
increased by0.97%
Maintainers
1
Install size
22.2 kB
Created
Weekly downloads
 

Changelog

Source

1.1.0 (2020-04-20)

  • Don't accept escape sequences in "import"
  • Mark as compatible with acorn@7

Readme

Source

Support for import.meta in Acorn

NPM version

This is a plugin for Acorn - a tiny, fast JavaScript parser, written completely in JavaScript.

It implements support for import.meta as defined in the corresponding stage 3 proposal. The emitted AST follows ESTree.

Usage

This module provides a plugin that extends the Acorn Parser class:

var acorn = require('acorn');
var importMeta = require('acorn-import-meta');
acorn.Parser.extend(importMeta).parse('console.log(import.meta.url)');

License

This plugin is released under an MIT License.

FAQs

Last updated on 20 Apr 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc