# data-normalizer

> Function to normalize complex data structure

Latest version **1.0.2** (published 2019-01-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install data-normalizer
pnpm add data-normalizer
yarn add data-normalizer
bun add data-normalizer
```

## 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.2 |
| Published | 2019-01-04 |
| First published | 2019-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Akash Verma |
| Maintainers | akash2016 |
| Keywords | normalizer, npm, javascript |

## Links

- npm: https://www.npmjs.com/package/data-normalizer
- Repository: https://github.com/akash2016/normalizr
- Homepage: https://github.com/akash2016/normalizr.git#readme
- Issues: https://github.com/akash2016/normalizr/issues
- npm.io page: https://npm.io/package/data-normalizer

## Recent versions

- 1.0.2 (latest) — 2019-01-04
- 1.0.1 — 2019-01-04
- 1.0.0 — 2019-01-04

## README

# Installation

$ npm install normalizer

# JavaScript API

Below is an example of how to utilize normalizer. It normalizes array that has id attribute.

var normalizer = require('normalizer');

let data = {
  first:{
    second:[{id:1, value: 1}],
    third:[{value:3}]
  }
}
normalizer(data); 


Output: 
  first:{
    second:{
      1:{
        value:1
      }
    },
    third:[{value:3}]
  }


# License

MIT © Akash Verma

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