@rothzerg/convertor
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@rothzerg/converter

npm (scoped) npm bundle size (minified)

Install

$ npm install @rothzerg/converter

kFormatter(value:string|number)

import { kFormatter } from '@rothzerg/utils'
kFormatter('1234');
=> '12.43'

kFormatter('123456');
=> '1.2k'

onlyNumber(value:string)

import { onlyNumber } from '@rothzerg/utils'
onlyNumber('emre12s');
=> '12'

onlyNumber('emre');
=> ''

Readme

Keywords

none

Package Sidebar

Install

npm i @rothzerg/convertor

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

329 kB

Total Files

24

Last publish

Collaborators

  • rothzerg