
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.
pakmanager
Advanced tools
An example (and fully functional) package manager built on the pakman and npm APIs.
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"
npm adduser
And install pakmanager:
npm install -g pakmanager
In short: run pakmanager build wherever package.json exists
Create your project
PROJECT=~/Code/some-project
mkdir -p ${PROJECT}/lib
cd ${PROJECT}
touch lib/index.js
npm init
NOTE: Your code will be wrapped in a strict-mode closure - so don't use "The Bad Parts" TM such as using this to refer to the global object. See jshint.
(function () { "use strict";
var module = { exports: {} };
/*** your code pasted here ***/
provide('providename', module);
}());
Mark as private if need be by editing package.json and adding "private": true,
Test and build your module
pakmanager deps
pakmanager build
# edit pakmanaged-test.js
# open pakmanaged.html to see about any errors
And you might want to publish your module
npm publish ./
pakmanager deps # list all dependencies
pakmanager build # builds package.json.browserDependencies and package.json.main
rm -rf pakmanaged.js ./node_modules # clean old builds
#create(config)
#init(cb, config)
config.packageRoot
linting
jshint code and report errors
Add to API
pakmanager init # creates / updates package.json
pakmanager install # installs package.json.browserDependencies into ./node_modules
pakmanager clean # rm -rf ./node_modules
pakmanager rebuild # clean, build
pakmanager add # add module@ver to package.json.browserDependencies
pakmanager set # set module@ver in package.json.browserDependencies
FAQs
A demo package manager using the pakman API.
We found that pakmanager 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.