https://github.com/rozek/banglejs-2-example-module
just an example for a remote Bangle.js 2 JavaScript module
https://github.com/rozek/banglejs-2-example-module
banglejs
Last synced: about 1 year ago
JSON representation
just an example for a remote Bangle.js 2 JavaScript module
- Host: GitHub
- URL: https://github.com/rozek/banglejs-2-example-module
- Owner: rozek
- License: mit
- Created: 2022-01-08T10:38:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-01T05:50:24.000Z (over 4 years ago)
- Last Synced: 2025-01-29T20:30:01.297Z (over 1 year ago)
- Topics: banglejs
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# banglejs-2-example-module #
just an example for a remote Bangle.js 2 JavaScript module
This is just an example for a JavaScript module, that the [Espruino](https://www.espruino.com/) [Web IDE](https://www.espruino.com/ide) may directly load from GitHub.
Apart from being loaded this module does not do anything useful.
## Usage ##
In order to load this module (and evaluate the function it exports), enter the following code into the right-hand side(!) of the Web IDE and upload it to the emulator or a real device:
```javascript
let loadedModule = require('https://raw.githubusercontent.com/rozek/banglejs-2-example-module/main/module.js');
let theAnswer = loadedModule.getAnswer();
print('the answer is',theAnswer);
```
## License ##
[MIT License](LICENSE.md)