tamplier
v0.1.0
Published

Downloads
98
Readme
Collection JS generators of C functions for:
- json5 consumption
- data hydration
- json schema validation
- templates
Installation
npm i -g tamplierUsage as a CLI tool
tamplier -i input.js -o output.cUsage as a library
const tamplier = require('tamplier');
const t = tamplier();
// define arguments
t.amplitude = {type: 'number'};
t.frequency = {type: 'number'};
t.points = {type: 'number'};
t.table1 = t`
time v(in) v(out)
${ t.range(t.points).map(i => t`${i} ${t.amplitude * t.std.sin(i * t.PI / 2)}`) }
`;
console.log(t.table1);License
MIT
