Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including template-query-object with all npm packages installed. Try it out:

var TemplateQueryObject = require("template-query-object"); var globalParams = { color: "red" }; var queryObj = new TemplateQueryObject({ query: "{{partials.matchAll}}\n" + "{{partials.setName}}\n" + "{{partials.getProp}}", partials: { matchAll: "match {{key}}", setName: "set {{key}}.{{value}} = {{color}}", getProp: "return {{key}}.{{value}} as {{key}}" }, parameters: { key: "apple", value: "color" }, globalParams: globalParams }); console.log(queryObj.query);

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

template-query-object v2.0.3

Template Query object to hold a template based query, its configuration, and issue proper callback with parsed/unparsed result and query object

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free