Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
browserify-package-json
Advanced tools
Did you know that when browserify includes package.json
file in bundle this bundle can contain private information like installed module path?
For example, lets install browserify:
$ pwd
/home/kirill/tmp
$ npm install browserify
...
$ cat ./node_modules/browserify/package.json | grep _
"_args": [
"_from": "browserify@latest",
"_id": "browserify@13.1.1",
"_inCache": true,
"_location": "/browserify",
"_nodeVersion": "6.3.1",
"_npmOperationalInternal": {
"tmp": "tmp/browserify-13.1.1.tgz_1477162362598_0.2967709470540285"
"_npmUser": {
"_npmVersion": "3.10.5",
"_phantomChildren": {},
"_requested": {
"_requiredBy": [
"_resolved": "https://registry.npmjs.org/browserify/-/browserify-13.1.1.tgz",
"_shasum": "72a2310e2f706ed87db929cf0ee73a5e195d9bb0",
"_shrinkwrap": null,
"_spec": "browserify",
"_where": "/home/kirill/tmp",
"string_decoder": "~0.10.0",
This package remove all values for which keys starts with _
.
There are two ways,
browserify -t [ browserify-package-json ] index.js
const browserify = require('browserify')
const browserifyPackageJSON = require('browserify-package-json')
browserify()
.add('index.js')
.transform(browserifyPackageJSON)
.bundle((err, result) => {
if (!err) console.log(result.toString())
})
MIT
FAQs
Remove not public values from package.json on browserify
We found that browserify-package-json 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.