Package Exports
- edge-keymgr
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (edge-keymgr) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
edge-keymgr
Simple API for accessing the Windows Credential Manager.
This project uses edge in order to call a .NET assembly (Windows Credentials Manager Api) from node.
The name comes from the dll name of the Windows Credential Manager => Run: control keymgr.dll
.
Install
npm install edge-keymgr
Example
var keymgr = require('edge-keymgr');
var target = 'about:blank';
var username = 'foobar';
var password = 'password123';
keymgr.getCredentialSync(target);
// => null
keymgr.addCredentialSync({
target: target,
username: username,
password: password
});
// => true
keymgr.getCredentialSync(target);
// => {"target":"about:blank","username":"foorbar","password":"password123"}
keymgr.removeCredentialSync(target);
// => true
keymgr.getCredentialSync(target);
// => null