
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.
JS Import Compiler optimizes JavaScript by inlining recursively JavaScript files referenced by $import function
JS Import Compiler is a node.js application that
looks for $import calls recursively in the source JavaScript file and
resolves them in the destination file the same way as LESS/SCSS preprocessors resolve
@import rule in the output CSS.
Define dependencies in your code:
src/main.js
var foo = $import( "./Form/Input/Tel" );
Create the dependency source:
src/Form/Input/Tel.js
function() {
return {
prop: "",
method: function(){}
}
}
Run the compiler:
node jsic.js src/main.js build/mail.js
Examine the combined file:
build/main.js
var foo = function() {
return {
prop: "",
method: function(){}
}
};
In order to have keep dependency source in in valid syntax from a linter prospective you can assign its body to module.exports, which is ignored by the compiler
/**
* The banner will be ignored by compiler
*/
module.exports = function() {
return {
prop: "",
method: function(){}
}
};
Please find instructions at https://github.com/dsheiko/grunt-jsic
FAQs
JS Import Compiler optimizes JavaScript by inlining recursively JavaScript files referenced by $import function
We found that jsic 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.