An open API service indexing awesome lists of open source software.

https://github.com/matisbyar/byarutils

Simple, powerful, lightweight helpers library to assist your projects
https://github.com/matisbyar/byarutils

byarutils helpers library react

Last synced: 3 months ago
JSON representation

Simple, powerful, lightweight helpers library to assist your projects

Awesome Lists containing this project

README

          

# byarutils

> Simple, powerful, lightweight helpers library to assist your projects

[![NPM](https://img.shields.io/npm/v/byarutils.svg)](https://www.npmjs.com/package/byarutils) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save byarutils
```

## Usage

```jsx
import { log } from 'byarutils'
import { addToPool } from 'byarutils'

function send(to, subject, body) {
try {
// ...
log('SUCCESS', 'Mail Sender Service', 'Mail sent successfully to: ' + to)
} catch (error) {
log('ERROR', 'Mail Sender Service', 'Mail sending failed to: ' + to)
addToPool(send, [to, subject, body], 3)
}
}

```

## License

MIT © [matisbyar](https://github.com/matisbyar)

## Thanks to contributors

- [Valentin Vanhove](https://github.com/vanhovev)