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/[email protected],npm/[email protected],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