
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.
require-extension-hooks-module
Advanced tools
Parse import/export statements in node modules. No need to include the entire babel-core library if node supports 99% of ES6 syntax already!
npm install require-extension-hooks require-extension-hooks-module --save-dev
const hooks = require('require-extension-hooks');
hooks('js').plugin('module');
You can now use the import/export syntax in your nodejs files. require-extension-hooks-module will transpile modules into module.exports and require() statements.
export default {};
export const myConstant = {};
export function myFunction(){};
const foo = {}, bah = {}, zoo = {};
export {foo, bah, zoo as Zoo};
import defaultValue from './foo';
import * as all from './foo';
import {myConstant, myFunction} from './foo';
import {foo, bah, Zoo as zoo} from './foo';
FAQs
Parse import/export statements in node modules
We found that require-extension-hooks-module 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.