To install via npm
:
npm i complex-js moo nearley # peer dependencies for expression parser
const Complex = require('complex-js');
ES2015 Module:
import Complex from 'complex-js';
Browser:
<script src="https://cdn.jsdelivr.net/combine/npm/moo@0.5.1,npm/nearley@2.19.1,npm/complex-js"></script>
<script>
const { Complex } = window;
</script>
requirejs(['complex-js'], function (Complex) {
});
API reference available at https://patrickroberts.github.io/complex-js/.
Report available at https://patrickroberts.github.io/complex-js/lcov-report/.
Copyright (c) 2020 Patrick Roberts
MIT