@onesy/utils
Version:
84 lines (56 loc) • 1.18 kB
Markdown
</br>
</br>
<p align='center'>
<a target='_blank' rel='noopener noreferrer' href='#'>
<img src='utils/images/logo.svg' alt='onesy logo' />
</a>
</p>
<h1 align='center'>onesy Utils</h1>
<p align='center'>
Utils
</p>
<br />
<h3 align='center'>
<sub>MIT license </sub>
<sub>Production ready </sub>
<sub>100% test cov </sub>
<sub>Browser and Nodejs</sub>
</h3>
<p align='center'>
<sub>Very simple code </sub>
<sub>Modern code </sub>
<sub>Junior friendly </sub>
<sub>Typescript </sub>
<sub>Made with :yellow_heart:</sub>
</p>
<br />
## Getting started
### Add
```sh
yarn add @onesy/utils
```
### Use
```javascript
// Import any of the methods
import { encode, equalDeep } from '@onesy/utils';
const value = { a: 'a', b: [{ a: 4 }] };
encode(value);
// 'eyJhIjoiYSIsImIiOlt7ImEiOjR9aa0='
equalDeep(value, { a: 'a', b: [{ a: 4 }] });
// true
// etc.
```
### Dev
Install
```sh
yarn
```
Test
```sh
yarn test
```
### Prod
Build
```sh
yarn build
```