-
-
Notifications
You must be signed in to change notification settings - Fork 30
Getting started
Arthur Guiot edited this page Aug 2, 2018
·
4 revisions
Type the following command in a terminal
[sudo] npm i theorem.js
Then open your favorite code editor:
const t = require("theorem.js");
/* Start coding here */
At the end of your <body>
tag:
<!-- BigNumber -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bignumber.js/7.2.1/bignumber.min.js" charset="utf-8"></script>
<!-- TheoremJS -->
<script src="https://unpkg.com/theorem.js" charset="utf-8"></script>
<!-- Your scripts -->
In your script:
const t = new TheoremJS()
Access to the BigNumber configuration like that:
t.config(OBJ) // => BigNumber.config(OBJ)
Any questions? Don't hesitate to create an issue and tell me about your problem 😊.
Copyright © 2017-2018 Arthur Guiot