neka-simple-utilities
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

Installation

Install the dependencies and devDependencies and start the server.

npm i neka-simple-utilities

or

yarn add neka-simple-utilities

List Utils

Text Ellipsis

TextEllipsis({ position: 'start', text: 'How To Make Money', length: 6 });
Result: '... Money';

Params

Name Type Default
text* string
length* number
position 'start'|'middle'|'end' 'end'

Number Formatter

NumberFormatter({ value: 10000000 });
Result: '10.000.000';

Params

Name Type Default
value* number
separator string '.'

Kilo Formatter

KiloFormatter({ value: 1000 });
Result: '1K';

Params

Name Type Default
value* number

Copy To Clipboard (Async/Await)

CopyToClipboard({ text: 'Test' });
Result: console.log('Test Copied');

Params

Name Type Default
text* string

Package Sidebar

Install

npm i neka-simple-utilities

Weekly Downloads

168

Version

1.0.6

License

ISC

Unpacked Size

9.21 kB

Total Files

12

Last publish

Collaborators

  • nekaartajaya