@rothzerg/convertor
v1.0.4
Published
[![npm (scoped)](https://img.shields.io/npm/v/@rothzerg/converter.svg)](https://www.npmjs.com/package/@rothzerg/converter) [![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@rothzerg/converter.svg)](https://www.npmjs.com/package/@roth
Downloads
2
Readme
@rothzerg/converter
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');
=> ''