# snoozy

> Snoozy is open-source lightweight utility library delivering modularity.

Latest version **1.0.0-beta.1** (published 2022-06-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install snoozy
pnpm add snoozy
yarn add snoozy
bun add snoozy
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-beta.1 |
| Published | 2022-06-21 |
| First published | 2022-06-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8.0 |
| Dependencies | 0 |
| Unpacked size | 11.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Shivam R Mishra |
| Maintainers | shivam_mishra |
| Keywords | crypto, encrypt, security, encryption, token, underscore, lodash, json, array, moment, timer, timezone |

## Links

- npm: https://www.npmjs.com/package/snoozy
- npm.io page: https://npm.io/package/snoozy

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.0-beta.1 (latest) — 2022-06-21

## README

# Snoozy

Snoozy is open-source lightweight utility library delivering modularity.
  - simple to use.
  - zero dependencies.
  - developer-friendly.
  - focus on high performance.

And of course, Snoozy itself is open source with a [public repository](https://github.com/shiva-rockers/snoozy) on GitHub.

### Installation

Snoozy requires [Node.js](https://nodejs.org/) v8+ to run.
```sh
$ npm i snoozy --save
```
### Usage

```sh
const { crypt, dasher, logger, dater, validate } = require('snoozy');
```

## Why Snoozy
Snoozy has useful function written for crypt, dash, logger, time and validate.
 - crypt (Basic and useful encryption functions.)
 - dash (Useful utility function for array and object operations and much more. )
 - logger (Colorful logs.)
 - dater (Useful date and time utility.)
 - validate (Regular data validation checker)

 ## crypt
 - encryptPassword(password)
 - salt
 - base64ToBuffer
 - randomCode

 ## dash
 - parse(jsonString)
 - stringify(json)
 - clone(json)
 - deepClone(json)
 - cloneObject(json)
 - cloneArray(json)
 - pick(object, [paths])
 - omit(object, [paths], deepCloneFlag:Boolean)
 - isEmptyObject(object)
 - toFloatFixed(number)
 - toString(data)
 - sortByKey(array, key)
 - randomizeArray(array)
 - randomBetween(min, max)
 - randomFromArray(array)
 - delay(ttl)
 - emptyCallback(error)
 - errorCallback(error)
  
 ## logger
 - black(content)
 - red(content)
 - green(content)
 - yellow(content)
 - blue(content)
 - magenta(content)
 - cyan(content)
 - white(content)
 - console(content)
 - error(content)
 - warn(content)
 - table(content)
 - info(content)
 - trace(content)
  
 ## dater
 - formattedDate()
 - isoTimeString()
 - getDate(date)
 - addDays(date, days)
 - addMilliseconds(date, milliseconds)
  
 ## validate
 - isEmail()
 - isPassword()

License
----
MIT

**Free Software, Hell Yeah!**

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