Node.js

Installation

View the package on NPM and the open source code on Github.
1
$ npm install smile-identity-core
Copied!
Require the package:
1
const smileIdentityCore = require("smile-identity-core");
Copied!
and pull in any of the necessary classes that you will be using:
1
const WebApi = smileIdentityCore.WebApi;
2
const IDApi = smileIdentityCore.IDApi;
3
const Signature = smileIdentityCore.Signature;
4
const Utilities = smileIdentityCore.Utilities;
Copied!
Please note that for versions older than 1.0.0, you would have imported as follows:
1
const WebApi = require("smile-identity-core");
2
const Signature = require('smile-identity-core/src/signature');
3
const Utilities = require('smile-identity-core/src/utilities');
Copied!
Last modified 7mo ago
Copy link