We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to run this code:
const { Provider } = require("node-webcrypto-p11"); const provider = new Provider("/usr/lib/libaetpkss.so.3"); let tokens = 0; provider .on("listening", (info) => { console.log("listening"); console.log(info); console.log(`Providers: ${info.providers.length}`); tokens = info.providers.length; }) .on("token", (info) => { console.log("Removed:", info.removed); console.log("Added:", info.added); }) .on("error", (e) => { console.error(e); }) provider.open();
Returns:
The text was updated successfully, but these errors were encountered:
You need to use babel-polyfill. node-webcrypto-p11 uses PKIjs which doesn't work without babel module
babel-polyfill
node-webcrypto-p11
PKIjs
Add this line to your code
require("babel-polyfill")
Sorry, something went wrong.
No branches or pull requests
Trying to run this code:
Returns:
![image](https://user-images.githubusercontent.com/3705201/39657877-5752c072-4fda-11e8-9205-942ca430ff8e.png)
The text was updated successfully, but these errors were encountered: