ComputeBasic
ComputeBasic is a simple script language for amateurs, compiled as JavaScript.
Installation
SystemJS
You need to reference Systemjs first and then import the index.js file like this:
<script src="//cdn.jsdelivr.net/npm/systemjs@0.21.6/dist/system.js"></script>
<script>
System.config({
packages: {
'./dist': {
defaultExtension: 'js'
}
}
});
System.import('./dist/index');
</script>
CDN (Recommended)
For example:
<script>
System.import('https://cdn.jsdelivr.net/npm/computebasic@x.x.x/dist/index.min');
</script>
Which will reflect the latest version as soon as it is published to npm. You can also browse the source of the npm package at https://cdn.jsdelivr.net/npm/computebasic/.
Also available on unpkg.
NPM
In the Node.js environment, you can install directly using NPM:
$ npm i computebasic --save
Or install the developing (unstable) version for newest features:
$ npm i computebasic@dev --save
Test
Test in the browser, visit "test/index.html". Test in Nodejs, please execute "node test.node.js" in the "dist" directory.
Click here to visit online.
Changelog
Changelog
License
This library is published under Apache-2.0 license.