# dynamodb-value

> Convert javascript object into dynamodb schema and back. This is a simplified version of a more complete solution: [official sdk from aws](https://github.com/awslabs/dynamodb-document-js-sdk)

Latest version **1.0.5** (published 2016-08-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install dynamodb-value
pnpm add dynamodb-value
yarn add dynamodb-value
bun add dynamodb-value
```

## 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.5 |
| Published | 2016-08-09 |
| First published | 2015-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Yaniv Kessler |
| Maintainers | ironsource, kessler |

## Links

- npm: https://www.npmjs.com/package/dynamodb-value
- Repository: https://github.com/ironSource/node-dynamodb-value
- Issues: https://github.com/ironSource/node-dynamodb-value/issues
- npm.io page: https://npm.io/package/dynamodb-value

## Recent versions

- 1.0.5 (latest) — 2016-08-09
- 1.0.4 — 2016-08-07
- 1.0.3 — 2016-08-07
- 1.0.2 — 2016-08-07
- 1.0.0 — 2015-08-09

## README

# dynamodb-value [![Build Status](https://secure.travis-ci.org/ironSource/node-dynamodb-value.png?branch=master)](http://travis-ci.org/ironSource/node-dynamodb-value)

Convert javascript object into dynamodb schema and back. This is a simplified version of a more complete solution: [official sdk from aws](https://github.com/awslabs/dynamodb-document-js-sdk)

This module does not support data types that are not native to javascript

```javascript
    var DynamoDBValue = require('dynamodb-value')
    
    var jsObj = {
        str: '1439057466535',
        num: 123,
        obj: { z: '1' },
        list: ['123', { b: '2' }]
    }

    var ddbObject = {
        str: { S: '1439057466535' },
        num: { N: '123' },
        obj: {M: { z: { S: '1' }}},
        list: { L: [ { S: '123' }, { M: { b: { S: '2' }}}] }
    }

    DynamoDBValue.toJavascript(ddbObject) // deeply equal jsObj
    DynamoDBValue.toDDB(jsObj) // deeply equal ddbObject
```

[MIT](http://opensource.org/licenses/MIT) © ironSource

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