# babel-plugin-isotropy-keyvaluedb

> Babel plugin for transforming to lib-keyvaluedb

Latest version **0.0.3** (published 2017-10-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-isotropy-keyvaluedb
pnpm add babel-plugin-isotropy-keyvaluedb
yarn add babel-plugin-isotropy-keyvaluedb
bun add babel-plugin-isotropy-keyvaluedb
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-10-29 |
| First published | 2017-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Isotropy Team |
| Maintainers | anbarasiu, isotropy-admin, arivanandan, jeswin |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-isotropy-keyvaluedb
- Repository: https://github.com/isotropy/babel-plugin-isotropy-keyvaluedb
- Homepage: https://github.com/isotropy/babel-plugin-isotropy-keyvaluedb#readme
- Issues: https://github.com/isotropy/babel-plugin-isotropy-keyvaluedb/issues
- npm.io page: https://npm.io/package/babel-plugin-isotropy-keyvaluedb

## Dependencies (2)

- [ramda](https://npm.io/package/ramda.md) ^0.24.1
- [isotropy-ast-analyzer-keyvaluedb](https://npm.io/package/isotropy-ast-analyzer-keyvaluedb.md) 0.0.1

## Recent versions

- 0.0.3 (latest) — 2017-10-29
- 0.0.2 — 2017-10-07
- 0.0.1 — 2017-10-07

## README

Isotropy Babel Plugin for Key-Value-DB
======================================
This module is a babel plugin that transpiles array operations into
corresponding kv-db operations.
It uses isotropy-ast-analyzer-keyvaluedb for AST analysis.

This is part of the isotropy framework (www.isotropy.org).

Include the plugin in .babelrc file.

Plugin configuration:
```
plugins: [
  [
    "transform-to-isotropy-keyvalueb",
    {
      projects: [
        {
          dir: "dist/test",
          modules: [
            {
              source: "fixtures/my-db",
              locations: [
                { name: "todos", connStr: "redis://127.0.0.1:6379" }
              ]
            }
          ]
        }
      ]
    }
  ]
]
```
projects:  
dir: Specify the root of the project.  
modules:  
source: Points to the local db file.  
locations:  
name: The name used to access the connStr specified alongside.  
connStr: The connection string used when the actual database operations take place.  

Example:
```javascript
import myDb from "./my-db";

async function getTodos() {
  // return all keyvalue pairs in "redis://127.0.0.1:6379"
  return myDb.todos
}
```

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