Skip to content

Latest commit

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

node-substrate

A simple Node Module used for whitelist filtering of object and json inputs.

Inspired by https://github.com/visionmedia/node-only

Usage Example:

varsubstrate=require("substrate");substrate({//Original object to be filtered"a": 5,"b": 6,"c":{"pi": 3.14,"cake": "pi^2"},"d": 7},{//Filter / Whitelist declaration"a":true,"b":true,"c":{"cake":true}//Object instead of true allows objects to pass through. Rules are recursive.})//=>{"a":5,"b":6,"c":{"cake":"pi^2"}}

About

Simple Node Module used for whitelist filtering object and json inputs.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages