simple-squiggle/node_modules/mathjs/bin/repl.js

11 lines
245 B
JavaScript

#!/usr/bin/env node
/*
* This simply preloads mathjs and drops you into a REPL to
* help interactive debugging.
**/
global.math = require('../lib/cjs/defaultInstance.js').default
const repl = require('repl')
repl.start({ useGlobal: true })