Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stwissel/node-red-contrib-objectcleaner
Manipulate an object (usually payload) to only have the properties of a sample object provided
https://github.com/stwissel/node-red-contrib-objectcleaner
Last synced: 17 days ago
JSON representation
Manipulate an object (usually payload) to only have the properties of a sample object provided
- Host: GitHub
- URL: https://github.com/stwissel/node-red-contrib-objectcleaner
- Owner: Stwissel
- License: apache-2.0
- Created: 2015-07-12T03:00:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-27T01:22:06.000Z (over 3 years ago)
- Last Synced: 2024-04-26T20:21:08.120Z (9 months ago)
- Language: HTML
- Size: 14.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Travis build status](https://travis-ci.org/Stwissel/node-red-contrib-objectcleaner.svg?branch=master)
# node-red-contrib-objectcleaner
Manipulate an object (usually payload) to only have the properties of a sample object provided## v0.0.4
- Added reference property field to allow user set the reference externally
## v0.0.3
- Fixed JS/HTML name
## v0.0.2
- Added the option to backfill missing properties from the template object
- First capability to handle arrays
- reports what properties were missing or addedLimitation:
- Objects in arrays are not handled deeply, only data type is compared
## v0.0.1
Initial release. Compares 2 JSON objects. Removes properties not found in the template object.
Options:
- strict data type checking: "42" !== 42
- reject objects with missing properties
Limitation:- Can't handle any arrays