Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Get metadata for your build
npm install build-data --save
Get it into your program.
const buildData = require('build-data');
Get the current branch name and a version to be associated with your build.
buildData().then((data) => {
console.log('data:', data);
// {
// branch : 'master',
// version : '1.0.0'
// }
});
Get the data that was used for the most recent build.
buildData.latest().then((data) => {
console.log('data:', data);
});
You can and should provide any data you know already.
buildData({ version : '3.2.1' }).then((data) => {
console.log('data:', data);
});
Type: object
Settings and known build metadata.
Type: string
Default: process.cwd()
The parent directory of the build root.
Type: string
Use the given branch name, instead of asking git.
Type: string
Use the given version, instead of asking build-version.
Same as buildData()
, except the branch
defaults to the most recently built branch and version
defaults to the most recently built version of the branch.
See our contributing guidelines for more details.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
Go make something, dang it.
FAQs
Get metadata for your build
We found that build-data 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.