Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@jspm/node-importmap-loader
Advanced tools
With JSPM node-importmap-loader, installing dependencies is a thing of the past! You can reference and execute them directly! Maximize productivity ⚡️, decrease security risk 🚔, and probably do other awesome things too! Use JSPM node-importmap-loader today!
Sort, yes and no—but it's close! This project's focus is to enable you to use import maps with Node if you have familiarity in the space. Meanwhile, we'll be working dev ex to make using this as seemless as possible.
JSPM uses Node's experimental loader methodology with JSPM's import map technology to allow you 🫵 to import dependencies directly from a cdn source without needing to install them!
When executing
node --loader ./dist/loader.js test.js
The following will be output
loader git:(main) node --loader ./loader.js test.js
(node:12944) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
testing
{
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
usingClientEntryPoint: false,
Events: [
[Function: getInstanceFromNode],
[Function: getNodeFromInstance],
[Function: getFiberCurrentPropsFromNode],
[Function: enqueueStateRestore],
[Function: restoreStateIfNeeded],
[Function: batchedUpdates$1]
]
},
createPortal: [Function: createPortal$1],
createRoot: [Function: createRoot$1],
findDOMNode: [Function: findDOMNode],
flushSync: [Function: flushSync$1],
hydrate: [Function: hydrate],
hydrateRoot: [Function: hydrateRoot$1],
render: [Function: render],
unmountComponentAtNode: [Function: unmountComponentAtNode],
unstable_batchedUpdates: [Function: batchedUpdates$1],
unstable_renderSubtreeIntoContainer: [Function: renderSubtreeIntoContainer],
version: '18.2.0'
}
One very significant upside of using deps using the loader
and import-map
. The dependencies from test.js
loads
du -sh -I @jspm -I fs-extra -I node-fetch node_modules
50M node_modules
du -sh .cache
3.6M .cache
Try it yourself!
Clone
git clone git@github.com:jspm/node-importmap-http-loader.git
Then, via devcontainers, launch the container by clicking the devcontainer button or via the command palette.
To setup devcontainers
Unrecommended and supported for issues, etc:
git clone git@github.com:jspm/node-importmap-http-loader.git
n install auto && npm install
FAQs
JSPM's node importmap loader ⚡️
The npm package @jspm/node-importmap-loader receives a total of 0 weekly downloads. As such, @jspm/node-importmap-loader popularity was classified as not popular.
We found that @jspm/node-importmap-loader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.