mirror of https://github.com/captn3m0/epicqr.git
add partial doc for nodejs
This commit is contained in:
parent
d4721413ee
commit
2bbaf6120e
14
README.md
14
README.md
|
@ -12,9 +12,11 @@ including PHP/Python/Flash/JVM/JS etc.
|
|||
## TODO
|
||||
|
||||
- [ ] Tests for Haxe.
|
||||
- [ ] Tests for Haxe with specific targets
|
||||
- [ ] Publish 1.0.
|
||||
- [ ] Publish releases in Swift.
|
||||
- [ ] Publish releases in JS.
|
||||
- [ ] Publish releases for Swift.
|
||||
- [ ] Publish releases for JS.
|
||||
- [ ] Publish releases for Nodejs.
|
||||
- [ ] Create maven release on GitHub Packages.
|
||||
- [ ] Create Demo website.
|
||||
|
||||
|
@ -46,6 +48,14 @@ assert r1.epic.equals("ABC1234566") : "Invalid EPIC";
|
|||
assert r1.id == 1234 : "Invalid Unique ID";
|
||||
```
|
||||
|
||||
### Nodejs
|
||||
```js
|
||||
// TODO Import
|
||||
const E = require('eci').EpicQR;
|
||||
var r = E.decode("dbhvecY6Roa4NF3gAzEbkTibZZzXAEYpMg8197BQWMS2+ID24FGDKWB5IEcuxjsA81ChprhSO3EsjKMRDbBWLg==")
|
||||
console.log(r.epic) // "ABC1234566"
|
||||
````
|
||||
|
||||
## Specification
|
||||
|
||||
See [`SPEC.md`](SPEC.md).
|
||||
|
|
Loading…
Reference in New Issue