astring-import-attributes
v0.1.0
Published
import attributes support for astring
Downloads
6
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-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.