Socket
Book a DemoInstallSign in
Socket

astring-import-attributes

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

astring-import-attributes

import attributes support for astring

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

astring-import-attributes: import attributes support for astring

Make astring generate JavaScript code with Import Attributes from ESTree-compliant AST.

License

INSTALL

$ npm install astring-import-attributes

USAGE

import * as astring from 'astring';
import { astringImportAttributes } from 'astring-import-attributes';

const customGenerator = astringImportAttributes(astring.GENERATOR);
const generatedCode = astring.generate(ast, {
  generator: customGenerator
});

AUTHOR

  • Takuto Wada

LICENSE

Licensed under the MIT license.

Keywords

astring

FAQs

Package last updated on 22 Aug 2024

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