@usrt/cryptosocket-wrapper
v1.0.4
Published
Typescript API library for communicate with CryptoSocket application.
Maintainers
Readme
Description
Typescript API library for communicate with CryptoSocket application.
Startup
Install CryptoSocker application.
Install npm package using
npm install @usrt/cryptosocket-wrapper.Type next script:
// Create client
var client = new CryptoSocketClient();
// Connect to CryptoSocket on your computer
await client.connect('CRYPTOSOCKET_API_TOKEN');
// Select file on disk
const filePath = await client.showOpenDialog(
'Please, select "*.p12" file on you pc!'
);
// If filepath if empty - user close select fiel window
if (!filePath) {
return;
}
// Password of your p12 file key
const password = '12345678';
// SignReferences
Build source
- Install dependencies using
npm install. - Run build script
npm run build.
