From d8033ff6cd612f8737f3a5fb2905482632488dda Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Tue, 12 Jan 2021 14:58:22 -0500 Subject: Format printed results in test/js --- docs/bqn.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/bqn.js b/docs/bqn.js index 6612587d..db3085c0 100644 --- a/docs/bqn.js +++ b/docs/bqn.js @@ -233,4 +233,7 @@ let fmt1 = run( )(list([type, decompose, glyph, fmtnum])); let fmt = x => fmt1(x).map(c=>c===0?" ":c).join(""); -if(typeof module!=='undefined'){module.exports=bqn;} +if (typeof module!=='undefined') { + bqn.fmt=fmt; bqn.compile=compile; bqn.run=run; + module.exports=bqn; +} -- cgit v1.2.3