
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
git-repo-version
Advanced tools
Generates a version string based on the version specified in your package.json and the sha revision of the current commit/branch.
Generates a version string based on the version specified in your package.json and the sha revision of the current commit/branch.
Tipically you will only need to install this as a devDependency as follows"
npm install --save-dev git-repo-version
This plugin automatically exports a function that when called calculates return the version string with a sha of the given length (defaults to 8)
var getVersion = require('git-repo-version');
getVersion(); // "1.5.0-beta.1+pre.a1b2c3d4"
getVersion(10); // "1.5.0-beta.1+pre.a1b2c3d4e5"
The way this function works is:
package.json
, it will use that version number and append
the SHA of the current commit at the end (p.e. 1.5.0-beta.1+pre.a1b2c3d4
)package.json
, it will use the name of the current
branch and append the SHA (p.e. develp.a1b2c3d4
)DETACHED_HEAD
instead (p.e DETACHED_HEAD.1a2b3c4d
)FAQs
Generates a version string based on the version specified in your package.json and the sha revision of the current commit branch.
The npm package git-repo-version receives a total of 27,981 weekly downloads. As such, git-repo-version popularity was classified as popular.
We found that git-repo-version 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
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.