1.0.4 • Published 5 years ago
@usrt/cryptosocket-wrapper v1.0.4
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';
// Sign
References
Build source
- Install dependencies using
npm install
. - Run build script
npm run build
.