computebasic
v1.0.0
Published
ComputeBasic is a simple script language for amateurs, compiled as JavaScript.
Downloads
10
Maintainers
Readme
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/[email protected]/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/[email protected]/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.
Changelog
License
This library is published under Apache-2.0 license.