🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

simple-number-suffix

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-number-suffix

module that adds a suffix by rounding down the number.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

simple-number-suffix npm

module that adds a suffix by rounding down the number.

Installation

npm install simple-number-suffix

Usage (with CommonJS)

const filter = require('simple-number-suffix');

filter(999); // 999
filter(1234); // 1k
filter(1002928); // 1M
filter(2249284291); // 2G
filter(Number.MAX_SAFE_INTEGER); // 9P

Keywords

node

FAQs

Package last updated on 01 Jan 2019

Did you know?

Socket

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.

Install

Related posts