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.
ngx-build-info
Advanced tools
![CI](https://github.com/blaugold/ngx-build-info/workflows/CI/badge.svg) ![NPM](https://img.shields.io/npm/v/ngx-build-info)
An Angular CLI builder which generates a build info file.
Install the builder:
npm install -D ngx-build-info
And add a target to the project you want to generate a build info file for in angular.json
:
{
...
"projects": {
"app": {
"architect": {
"build-info": {
"builder": "ngx-build-info:build-info"
}
}
}
}
}
The builder expects to find a package.json
file in the project root dir, with name
and
version
.
The builder also expects to be run in a git repository.
{PROJECT_ROOT}/{SOURCE_ROOT}/environments/build-info.ts
.Run the builder when the build info file should be (re)generated.
ng run app:build-info
The build info file contains the following:
export const BUILD_INFO = {
"name": "a",
"version": "1.0.0",
"date": "2020-02-25T02:57:46.420Z",
"branch": "master",
"rev": "5cbf0ca677",
"tag": null,
"commitsSinceLastTag": 0,
"authorDate": "2020-02-25T02:00:29.000Z",
"buildNumber": 42
};
package.json
of the project the builder is configured in.package.json
of the project the builder is configured in.BUILD_NUMBER
CIRCLE_BUILD_NUM
TRAVIS_BUILD_NUMBER
FAQs
![CI](https://github.com/blaugold/ngx-build-info/workflows/CI/badge.svg) ![NPM](https://img.shields.io/npm/v/ngx-build-info)
We found that ngx-build-info 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.