
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
intergenerator
Advanced tools
intergenerator is a code and source-map generator for Babel AST. For specifically, in only generates minified code. This, along with a handful of other trade-offs, has allowed for improved performance characteristics compared to babel-generator itself.
At present, this library only supports ES5 code. An error will be thrown if any unexpected node types are encountered.
More AST node types will be supported in the future. If you don't see an issue related to an unimplemented node type, please feel free to open one. Or even better, open a PR!
intergenerator is a subproject of Interlock. For information about Interlock and how it works, check out our website.
// Instantiate a new generator...
const g = new Generator({
// options
});
// Add all source files...
g.addSourceFile("source-file-a.js", sourceContentA);
g.addSourceFile("source-file-b.js", sourceContentB)
// Generate code from your AST...
g.generate(ast);
// And retrieve your code and source-map.
const { code, map } = g;
sourceRoot: Optional. The URL root from which all sources are relative.outputFilename: Optional. The generated filename the source map is associated with.includeSourcemap: Boolean. Determines whether a source-map is generated.Note: Performance is roughly 3x slower at present with source-map generation enabled.
FAQs
Code and source-map generator for Babel AST.
We found that intergenerator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.