JSPM

astring-import-attributes

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q15738F
  • License MIT

import attributes support for astring

Package Exports

  • astring-import-attributes
  • astring-import-attributes/package.json

Readme

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

LICENSE

Licensed under the MIT license.