1.0.0 • Published 3 years ago

tubeschoomper v1.0.0

Weekly downloads
-
License
Unlicense
Repository
github
Last release
3 years ago

tube schoomper

Schoomps tubes.

Install

npm install tubeschoomper

Usage

import { schoomp } from 'tubeschoomper';

schoomp(template, data, opts);
// see example.js for more details

template should be an object. Any parameters you want replaced should match this pattern: "@{{key}}" where 'key' is a dot-notation key to the property in the data object.

Options

The opts parameter should be an object with the following properties.

defaultValue

If this is not set, any values which are not matched by an property accessor or do not exist will be set to 'undefined' (note that it will be a string, not a literal).