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.
INSTALL
$ npm install astring-import-attributesUSAGE
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.