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.
buildstamp
Advanced tools
Utility for gathering build details
yarn add buildstamp
npm i buildstamp
buildstamp --out=some/path/b.json --git --docker.imageTag=foo --date.format=iso
Output in some/path/b.json
:
{
"timestamp": "2020-08-27T15:12:07.699Z",
"gitInfo": {
"commitId": "cd9660293d69a5ca7559197aedd1fa5de1a939fe",
"repoName": "qiwi/buildstamp.git"
}
}
Output is always printed to stdout
Option | Description | Default |
---|---|---|
--out.path | path to generated file | output is not written to a file |
--out.jsonSeparator | one of tab , space , double-space | tab |
--git | add git data to output | git data is omitted |
--docker.imageTag | docker image tag, will be added to output, if exists | docker info is omitted |
--date.format | add date to output, one of iso or instant | date is omitted |
--date.value | any valid input for Date constructor | Date.now() |
--cwd | working directory | process.cwd() |
API functions accept the same options as cli
Creates and returns buildstamp
Get buildstamp
import { execute } from 'buildstamp'
const stamp = execute({
git: true,
date: { format: 'iso' },
docker: { imageTag: 'foo', bar: 'bar'}
})
/*
{
git: {
commitId: 'fc6e78b11ef4c7db1c8b89fa6b0d9b3ad4ad481d',
repoName: 'qiwi/buildstamp.git'
},
docker: { imageTag: 'foo', bar: 'bar' },
date: '2020-08-27T20:47:41.958Z'
}
*/
Write buildstamp to file
import { execute } from 'buildstamp'
execute({
git: true,
date: { format: 'iso' },
docker: { imageTag: 'foo', bar: 'bar'},
out: {
path: 'some/path/stamp.json'
}
})
Output in some/path/stamp.json
:
{
"git": {
"commitId": "19128459495e461b3c2b64704566f6aaac193ce1",
"repoUrl": "https://github.com/qiwi/buildstamp.git",
"repoName": "qiwi/buildstamp"
},
"docker": {
"imageTag": "foo",
"bar": "bar"
},
"date": "2020-09-04T19:53:03.790Z"
}
FAQs
Buildstamp JS/TS API
The npm package buildstamp receives a total of 60 weekly downloads. As such, buildstamp popularity was classified as not popular.
We found that buildstamp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
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.