# neka-simple-utilities

> Simple Utilities

Latest version **1.0.6** (published 2022-10-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install neka-simple-utilities
pnpm add neka-simple-utilities
yarn add neka-simple-utilities
bun add neka-simple-utilities
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2022-10-31 |
| First published | 2022-10-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Neka Artajaya |
| Maintainers | nekaartajaya |
| Keywords | Utilities, Text Ellipsis, Copy To Clipboard, Number Formatter, Kilo Number Formatter |

## Links

- npm: https://www.npmjs.com/package/neka-simple-utilities
- Repository: https://github.com/nekaartajaya/neka-simple-utilities
- Homepage: https://github.com/nekaartajaya/neka-simple-utilities#readme
- Issues: https://github.com/nekaartajaya/neka-simple-utilities/issues
- npm.io page: https://npm.io/package/neka-simple-utilities

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2022-10-31
- 1.0.5 — 2022-10-28
- 1.0.4 — 2022-10-28
- 1.0.3 — 2022-10-19
- 1.0.2 — 2022-10-18
- 1.0.1 — 2022-10-18
- 1.0.0 — 2022-10-14

## README

## Installation

Install the dependencies and devDependencies and start the server.

```sh
npm i neka-simple-utilities
```

or

```sh
yarn add neka-simple-utilities
```

## List Utils

### Text Ellipsis

```javascript
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

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

#### Params

| Name      | Type   | Default |
| --------- | ------ | ------- |
| value\*   | number |         |
| separator | string | '.'     |

#

### Kilo Formatter

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

#### Params

| Name    | Type   | Default |
| ------- | ------ | ------- |
| value\* | number |         |

#

### Copy To Clipboard (Async/Await)

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

#### Params

| Name   | Type   | Default |
| ------ | ------ | ------- |
| text\* | string |         |

---
_Source: https://npm.io/package/neka-simple-utilities · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
