Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orangewise/jasonderulo
Rule based json transformer
https://github.com/orangewise/jasonderulo
Last synced: 8 days ago
JSON representation
Rule based json transformer
- Host: GitHub
- URL: https://github.com/orangewise/jasonderulo
- Owner: orangewise
- Created: 2018-01-17T08:14:49.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-17T10:09:27.000Z (almost 7 years ago)
- Last Synced: 2024-10-04T18:36:21.653Z (about 1 month ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jasonderulo
Rule based json transformer[![npm version][npm-badge]][npm-url]
[![Build Status][travis-badge]][travis-url]
[![JavaScript Style Guide][standardjs-badge]][standardjs-url]This module is currently in development...
# Installation
```
npm i jasonderulo
```# Examples
## Basic transformation
```javascript
var jasonderulo = require('jasonderulo')var from = {
a: {
B: {
c: 'value c'
}
}
}
var transformation = {
targetProp: 'a.B.c'
}console.log(jasonderulo.basicTransform(from, transformation))
// { targetProp: 'value c' }
```
[npm-badge]: https://badge.fury.io/js/jasonderulo.svg
[npm-url]: https://badge.fury.io/js/jasonderulo
[travis-badge]: https://travis-ci.org/orangewise/jasonderulo.svg?branch=master
[travis-url]: https://travis-ci.org/orangewise/jasonderulo
[standardjs-badge]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
[standardjs-url]: http://standardjs.com/