Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
bit-formater
Advanced tools
Format bit input. Options of a function and class
MIT
NPM:
npm install bit-formater
import { formatBytes, byteFormater } from 'bit-formater';
let x = formatBytes(234567543, 2);
let y = new byteFormater();
let r = y.add(12346765432);
console.log(r); // '12 GB 346 MB 765 KB and 432 Bytes downloaded'
r = y.add(93484952492834);
console.log(r); // '93 TB 496 GB 1298 MB 1258 KB and 1266 Bytes downloaded'
# Fork this repo, then
npm install
npm run watch
# add tests, make changes, pass tests ... then [ctrl+c]
npm run publish
Update typings.json/version
to match the source version you are typing against.
e.g. if you are creating typings for bit-formater@0.5.0
, then:
// typings.json
{
"version": "0.5.0"
// ...
}
FAQs
Format bit input. Options of a function and class
We found that bit-formater 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.