# @kishannareshpal/pairsjs

> A cool JavaScript library for implementing settings functionality as key-value pairs on your node app.

Latest version **1.0.9** (published 2019-12-12) · WTFPL license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @kishannareshpal/pairsjs
pnpm add @kishannareshpal/pairsjs
yarn add @kishannareshpal/pairsjs
bun add @kishannareshpal/pairsjs
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2019-12-12 |
| First published | 2019-12-12 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 19.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kishan Jadav |
| Maintainers | kishannareshpal |
| Keywords | js, pairs, key, value, store, persistence, json |

## Links

- npm: https://www.npmjs.com/package/@kishannareshpal/pairsjs
- Repository: https://github.com/kishannareshpal/pairsjs
- Homepage: https://github.com/kishannareshpal/pairsjs#readme
- Issues: https://github.com/kishannareshpal/pairsjs/issues
- npm.io page: https://npm.io/package/@kishannareshpal/pairsjs

## 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.9 (latest) — 2019-12-12
- 1.0.8 — 2019-12-12
- 1.0.7 — 2019-12-12
- 1.0.6 — 2019-12-12
- 1.0.5 — 2019-12-12
- 1.0.4 — 2019-12-12
- 1.0.3 — 2019-12-12
- 1.0.2 — 2019-12-12
- 1.0.1 — 2019-12-12

## README

# PairsJS

A NodeJS library for easy implementation and/or manipulation of key-value pairs. Can be used, for example, for configuration files.‌

## ​🌶 Getting Started is super easy!

To install PairJS into your existing nodeJS app run this command:

```bash
$ npm install @kishannareshpal/pairsjs
```

Or by adding this line into the dependencies section of your `package.json` file

```javascript
dependencies {
    // add this line
    "@kishannareshpal/pairsjs": "^1.0.4"
}

// and then run this command.
$ npm install
```



## 🐌 Start using it right away!

```javascript
// import the module
import PairsJS from '@kishannareshpal/pairsjs'

/* 1st: Initialize it. */
// – this will create a new file called `pairs.json`
// in your root directory.
let pairs = new PairsJS();


/* 2nd: CRUD */
// a) Add a new pair:
pairs.add("username", "joebytes")
pairs.add("age", 12)
pairs.add("isVerified", true)

/*
    ./pairs.json contents:
    
    {
        "username": "joebytes",
        "age": 12,
        "isVerified": true
    }
*/



// b) Get a pair
```

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