Skip to content

How do you configure mathjs in the CLI? #3026

Answered by josdejong
christianpetty asked this question in Q&A
Discussion options

You must be logged in to vote

That is a good question.

In the repl ./bin/repl.js you are just running javascript, so you can use math.import(...) to import your own functions and data types
For the cli ./bin/cli.js there is no such option, and you will have to edit the source code of it.

It would be interesting to think through command line options for the CLI to configure mathjs and import functions. Anyone interested picking that up?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by christianpetty
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants