@365admin/security 中文文档教程
管理凭据
Install
$ npm install --save tadmin-security
Usage
将凭据存储在用户主目录中名为
365ADMINSECRETS.JSON
[{
"key": "hexa00001",
"username": "********@hexa00001.onmicrosoft.com",
"password": "********"
}, {
"key": "hexa00002",
"username": "********@hexa00002.onmicrosoft.com",
"password": "********"
}]
var _365adminSecurity = require('@365admin/security');
var userpass = _365adminSecurity.credentials.getCredentials("hexa00001","ps")
console.log(userpass.username)
License
的文件中MIT © Niels Gregers Johansen
Manage credentials
Install
$ npm install --save tadmin-security
Usage
Store the credentials in the user's home directory in a file named
365ADMINSECRETS.JSON
[{
"key": "hexa00001",
"username": "********@hexa00001.onmicrosoft.com",
"password": "********"
}, {
"key": "hexa00002",
"username": "********@hexa00002.onmicrosoft.com",
"password": "********"
}]
var _365adminSecurity = require('@365admin/security');
var userpass = _365adminSecurity.credentials.getCredentials("hexa00001","ps")
console.log(userpass.username)
License
MIT © Niels Gregers Johansen