File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,14 @@ versions of the micro:bit.
16
16
The documentation can be found in
17
17
https://microbit-foundation.github.io/microbit-universal-hex/ .
18
18
19
+ ## npm Package
20
+
21
+ To add this package to your project:
22
+
23
+ ```
24
+ npm install @microbit/microbit-universal-hex
25
+ ```
26
+
19
27
## Web Tool
20
28
21
29
<img width =" 18% " alt =" microbit-universal-hex logo " src =" docs/img/web-tool-screenshot.png " align =" left " >
Original file line number Diff line number Diff line change @@ -8,7 +8,13 @@ nav_order: 2
8
8
9
9
## ES5 UMD Bundle
10
10
11
- Create a Universal Hex from two Intel Hex strings:
11
+ Download the UMD bundle from a GitHub release and add it to the page:
12
+
13
+ ``` html
14
+ <script src =" microbit-uh.umd.min.js" ></script >
15
+ ```
16
+
17
+ Then to create a Universal Hex from two Intel Hex strings:
12
18
13
19
``` js
14
20
var universalHex = microbitUh .createUniversalHex ([
@@ -34,3 +40,10 @@ separatedBinaries.forEach(function (hexObj) {
34
40
console .log (hexObj .hex );
35
41
});
36
42
```
43
+
44
+ ## npm package
45
+
46
+ You can integrate this library in your project using the npm package:
47
+ https://www.npmjs.com/package/@microbit/microbit-universal-hex
48
+
49
+ For information on how to use this library check the API documentation.
You can’t perform that action at this time.
0 commit comments