
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
This is a node module packaging tool, which supports Typescript and Standard Javascript languages.
To publish multiple modules to NPM, it is best to have a common packaging tool that automatically exports CJS version and standard ESM version, as well as type support.
# local
npm install --save-dev jnpkg
# global
npm install -g jnpkg
Use the jnpkg init command to generate the package.json file.
Set main and module to distinguish between CJS and ESM, which is conducive to the optimization of users when packaging.
The watch mode will be automatically packaged to the target according to the modification of the source file.
{
"main": "lib/index.js",
"module": "es/index.js",
"scripts": {
"watch": "jnpkg watch",
"build": "jnpkg build"
}
}
We put the source files into the src folder of the root directory. (E.g. ./src/index.ts).
Then running npm run build will generate cjs (lib directory) and esm (es directory) in the root directory.
Finally, we can publish to npm normally through the npm publish command.
Or you can set semantic-release to automatically publish to npm.
The jnpkg init command automatically generates semantic-release related files.
NPM Token and GITHUB Token can refer to the following URL
https://github.com/settings/tokens
https://www.npmjs.com/settings/{username}/tokens
// .jnpkgrc
{
"lib": true,
"es": true,
"browser": true,
"pkgName": "pkg",
"entry": "./src/index.ts",
}
JuLong - jl917
Anyone is welcome to participate in the maintenance and development of this project, and can also submit Issues and PR's
FAQs
npm module packing tool
We found that jnpkg 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
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.