number-brm
v1.4.0
Published
Pretty and Simple Number
Downloads
206
Readme
Ushbu npm package dasturingizdagi Numberlarni uch xonaga bo'lib beradi. Va bu package foydalanish uchun juda ham qulay. "brm()" funksiyasi ikki xil argument qabul qiladi: "int" yoki "string" Agar siz argumentga "int" bersangiz, ikkinchi argumentga qoldiq miqdorini sonda berasiz.
Yuklab olish:
nmp i number-brm yarn add number-brm
Foydalanish:
Node JSda:
const {} = require("number-brm") let number = 12345.4567
number.brm("int", 1) // return 12 345.4
number.brm("string") // return 12.3k
React JSda:
import {} from "number-brm"
let number = 1234567.4567
number.brm("int", 0) // return 1 234 567
number.brm("string") // return 1.2m