Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Lightweight wrapper for accessing npm programmatically (alternative to adding `npm` as a dependency)
Lightweight wrapper for accessing npm programmatically (alternative to adding npm
as a dependency)
require('npm')
seems like a good idea, but it adds tons of weight to your module, since it takes a long time to install. Why not use the npm
your users already have?
NOTE: re:
cache-min
, see: https://github.com/isaacs/npm/issues/2568#issuecomment-30626394 re:loglevel
, see: https://github.com/isaacs/npm/pull/4320
$ npm install enpeem --save
var npm = require('enpeem');
npm.install({
dir: '/code/my-sweet-node-app',
dependencies: [
'sails@0.10.1',
'sails-disk@git://github.com/balderdashy/sails-disk.git#associations',
'lodash'
]
loglevel: 'silent',
'cache-min': 999999999
}, function (err) { /* ... */ });
The
dir
optionThe
dir
option controls where the NPM package will be installed as a dependency. Ifdir
is unspecified, it defaults to the current working directory. Ifdir
is a relative path, it will be resolved relative to the current working directory.
npm.update({
loglevel: 'silent'
}, function (err) { /* ... */ });
FAQs
Lightweight wrapper for accessing npm programmatically (alternative to adding `npm` as a dependency)
The npm package enpeem receives a total of 99 weekly downloads. As such, enpeem popularity was classified as not popular.
We found that enpeem demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.