An open API service indexing awesome lists of open source software.

https://github.com/mattriley/node-polystruct

Make configuration convenient with Polystruct, a tiny utility that derives a common data structure from varying input representations.
https://github.com/mattriley/node-polystruct

data-structure javascript nodejs npm-package

Last synced: 3 months ago
JSON representation

Make configuration convenient with Polystruct, a tiny utility that derives a common data structure from varying input representations.

Awesome Lists containing this project

README

        

<%- lib.renderOpening() %>

## Install

<%- await lib.renderCode('npm install polystruct', 'sh', 'https://www.npmjs.com/package/polystruct') %>

## Usage

```js
const polystruct = require('polystruct');
const result = polystruct(inputValueOrArrayOrObject, referenceArrayOrObject, optionsObject);
```

## Scenarios

<%- await lib.renderCode(lib.fetchCode('./tests/scenarios.js')) %>