Collection JS generators of C functions for:
- json5 consumption
- data hydration
- json schema validation
- templates
npm i -g tampliertamplier -i input.js -o output.cconst 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);MIT