
Security News
Federal Government Rescinds Software Supply Chain Mandates, Makes SBOMs Optional
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.
Make bin scripts work local npm dependencies.
npm install link-bin
Should be used as a post-install npm hook
Let's say you wanna put the following atom-shell app on npm
#!/usr/bin/env atom-shell
// 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": "app.js",
"scripts": {
"install": "link-bin"
},
"dependencies": {
"atom-shell": "^0.21.3-1",
"link-bin": "^1.0.0"
}
}
If you publish the above program to npm 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 (even if they don't have atom-shell installed already)
To test it you can also run npm install -g . in the folder where you added the above app.js and package.json files.
MIT
FAQs
Make bin scripts work local npm dependencies
The npm package link-bin receives a total of 10 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
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.