UNPKG

655 BMarkdownView Raw
1# neon-js
2
3Constructed package using:
4
5- `neon-core`
6- `neon-api`
7
8In addition, this package exposes a high level semantic API binding for beginner usage. The semantic API can be found in the default export of the package.
9
10```js
11const Neon = require("cityofzion/neon-js");
12
13console.log(Neon); // {wallet, tx, api, nep5, etc...}
14
15const NeonJs = neon.default;
16
17console.log(NeonJs); // {create, get, sign, verify,...}
18```
19
20The semantic API follows a convention of Verb-Noun. Any extra words beyond the first 2 is collapsed into the Noun and camelcased.
21
22```js
23NeonJs.create.stringStream("1234");
24NeonJs.encrypt.privateKey("key");
25```
\No newline at end of file