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.
- Host: GitHub
- URL: https://github.com/mattriley/node-polystruct
- Owner: mattriley
- Created: 2023-04-15T07:47:26.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-20T13:12:18.000Z (almost 2 years ago)
- Last Synced: 2025-01-31T09:36:24.655Z (4 months ago)
- Topics: data-structure, javascript, nodejs, npm-package
- Language: JavaScript
- Homepage:
- Size: 480 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-TEMPLATE.md
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')) %>