
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
Generate a bin script with support for local npm dependencies and add it to package.json
Generate a bin script with support for local npm dependencies and add it to package.json.
npm install link-bin
Can be used as a post-install npm hook to link a shell script with local dependencies to beinstallable using npm.
Let's say you wanna put the following atom-shell app on npm
// this is an atom-shell app that just shows an empty screen
var app = require('app')
var BrowserWindow = require('browser-window')
app.on('ready', function () {
var win = new BrowserWindow({
width: 800,
height: 600,
show: true
})
})
Luckily atom-shell is installable through npm.
If you save the above file as app.js you can then create the following package.json file
{
"name": "my-atom-shell-app",
"version": "1.0.0",
"description": "my atom-shell app",
"bin": "link-bin",
"scripts": {
"install": "link-bin atom-shell app.js"
},
"dependencies": {
"atom-shell": "^0.21.3-1",
"link-bin": "^1.0.0"
}
}
If you save the above and run npm link in the directory link-bin will generate an executable
file that runs atom-shell app.js and and save that as ./link-bin which means
that when you run my-atom-shell-app afterwards on the command line it will execute the atom-shell app
You can also publish it to npm which means other people will be able to npm install -g my-atom-shell-app
and run my-atom-shell-app to execute the atom-shell app
MIT
FAQs
Make bin scripts work local npm dependencies
The npm package link-bin receives a total of 1 weekly downloads. As such, link-bin popularity was classified as not popular.
We found that link-bin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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 surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.