Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

Repository files navigation

json-parameterization - Parameterization of JSON Structures

Parameterize untrusted JSON structures safely. This is basically a very simple library for substituting strings into JSON structures.

Example

varparameterize=require('json-parameterization');varinput={"{{key-prefix}}Key": "{{now}} ms","say": "{{Hello World | to-lower }}"};varparams={'key-prefix': 'time','now': function(){returnnewDate().getTime();},'to-lower': function(param){returnparam.toLowerCase();}};parameterize(input,params);

Result

{timeKey: "1411165317832 ms",say: "hello world"}

License

The json-parameterization library is released on the MIT license, see the LICENSE for complete license.

About

DEPRECATED - Node.js Module for Parameterization of JSON Structures

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages