0.1.0 • Published 3 years ago
scalemodel v0.1.0
Install
npm add scalemodel
Examples
import { toCode } from "scalemodel";
function* Outer() {
yield Inner;
}
function* Inner() {
yield ["first", 1];
yield [2, "second"];
yield [3, "third", 3];
}
const jsCode = toCode(Outer);
/*
"function* Outer() {
\tyield Inner;
}
function* Inner() {
\tyield ["first",1];
\tyield [2,"second"];
\tyield [3,"third",3];
}"
*/
TODO
- Regular expressions?
- Sets?
- Maps?
- Symbols?
- Minify?
0.1.0
3 years ago