{"_id":"@alicloud/credentials","_rev":"2963273","name":"@alicloud/credentials","description":"alibaba cloud node.js sdk credentials","dist-tags":{"latest":"2.2.6"},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"time":{"modified":"2023-05-05T04:01:54.000Z","created":"2019-03-01T05:11:32.364Z","2.2.6":"2023-01-11T07:40:00.224Z","2.2.5":"2022-10-31T11:53:41.590Z","2.2.4":"2022-10-31T10:10:25.401Z","2.2.3":"2022-05-11T03:44:17.780Z","2.2.2":"2022-04-27T06:31:34.926Z","2.2.1":"2022-02-18T06:47:05.124Z","2.2.0":"2021-09-27T02:20:25.296Z","2.1.1":"2020-08-25T04:47:09.823Z","2.1.0":"2020-03-05T05:27:25.623Z","2.0.1":"2020-02-04T09:51:44.183Z","2.0.0":"2020-02-04T09:06:48.649Z","1.1.0":"2020-01-08T02:06:22.276Z","1.0.2":"2020-01-02T09:41:52.082Z","1.0.1":"2019-11-21T02:40:14.866Z","1.0.0":"2019-11-20T08:27:50.443Z","0.1.0":"2019-03-01T05:11:32.364Z"},"users":{},"author":{"name":"Alibaba Cloud SDK"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"versions":{"2.2.6":{"name":"@alicloud/credentials","version":"2.2.6","description":"alibaba cloud node.js sdk credentials","main":"dist/src/client.js","scripts":{"prepublishOnly":"tsc","build":"tsc","lint":"eslint --fix ./src --ext .ts","test":"mocha -b -r ts-node/register test/**/*.test.ts test/*.test.ts --timeout 15000","cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","ci":"npm run cov && codecov","test-integration":"mocha -b -r ts-node/register -R spec test/*.integration.ts","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"@types/expect.js":"^0.3.29","@types/ini":"^1.3.30","@types/mocha":"^7.0.1","@types/rewire":"^2.5.28","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","codecov":"^3.1.0","eslint":"^7.32.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^10.1.0","nyc":"^13.1.0","rewire":"^4.0.1","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.3","httpx":"^2.2.0","ini":"^1.3.5","kitx":"^2.0.0"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"2bf98dc14826a260e593992b0697e61ade23142f","_id":"@alicloud/credentials@2.2.6","_nodeVersion":"12.9.0","_npmVersion":"6.10.2","dist":{"shasum":"24b0c188e8ad4b3c5a51a1bc4d75e9c127771975","size":25339,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-2.2.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-2.2.6.tgz"},"_npmUser":{"name":"aliyunsdkteam","email":"sdk-team@alibabacloud.com"},"directories":{},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_2.2.6_1673422800060_0.8243233842079498"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-11T07:40:00.224Z","publish_time":1673422800224,"_cnpm_publish_time":1673422800224},"2.2.5":{"name":"@alicloud/credentials","version":"2.2.5","description":"alibaba cloud node.js sdk credentials","main":"dist/src/client.js","scripts":{"prepublishOnly":"tsc","build":"tsc","lint":"eslint --fix ./src --ext .ts","test":"mocha -b -r ts-node/register test/**/*.test.ts --timeout 15000","cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","ci":"npm run cov && codecov","test-integration":"mocha -b -r ts-node/register -R spec test/*.integration.ts","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"@types/expect.js":"^0.3.29","@types/ini":"^1.3.30","@types/mocha":"^7.0.1","@types/rewire":"^2.5.28","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","codecov":"^3.1.0","eslint":"^7.32.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^10.1.0","nyc":"^13.1.0","rewire":"^4.0.1","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.3","httpx":"^2.2.0","ini":"^1.3.5","kitx":"^2.0.0"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"8b328c0651e06bcc5006a70c9601b11f905d4b42","_id":"@alicloud/credentials@2.2.5","_nodeVersion":"12.9.0","_npmVersion":"6.10.2","dist":{"shasum":"11afd9eb1267e6e4fd88bb5aeff83c3f1a00cf96","size":24418,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-2.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-2.2.5.tgz"},"_npmUser":{"name":"aliyunsdkteam","email":"sdk-team@alibabacloud.com"},"directories":{},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_2.2.5_1667217221410_0.5555914989455792"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-31T11:54:50.096Z","publish_time":1667217221590,"_cnpm_publish_time":1667217221590},"2.2.4":{"name":"@alicloud/credentials","version":"2.2.4","description":"alibaba cloud node.js sdk credentials","main":"dist/client.js","scripts":{"prepublishOnly":"tsc","build":"tsc","lint":"eslint --fix ./src --ext .ts","test":"mocha -b -r ts-node/register test/**/*.test.ts --timeout 15000","cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","ci":"npm run cov && codecov","test-integration":"mocha -b -r ts-node/register -R spec test/*.integration.ts","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"@types/expect.js":"^0.3.29","@types/ini":"^1.3.30","@types/mocha":"^7.0.1","@types/rewire":"^2.5.28","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","codecov":"^3.1.0","eslint":"^7.32.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^10.1.0","nyc":"^13.1.0","rewire":"^4.0.1","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.3","httpx":"^2.2.0","ini":"^1.3.5","kitx":"^2.0.0"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"0283167934d68d1e5c146be4b9f17ee7916a9d33","_id":"@alicloud/credentials@2.2.4","_nodeVersion":"12.9.0","_npmVersion":"6.10.2","dist":{"shasum":"0c44898dd3cb7415404aa1bb7f96011a0e760e9f","size":24417,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-2.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-2.2.4.tgz"},"_npmUser":{"name":"aliyunsdkteam","email":"sdk-team@alibabacloud.com"},"directories":{},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_2.2.4_1667211025189_0.6350447266957973"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-31T10:28:34.349Z","deprecated":"wrong main file path","publish_time":1667211025401,"_cnpm_publish_time":1667211025401},"2.2.3":{"name":"@alicloud/credentials","version":"2.2.3","description":"alibaba cloud node.js sdk credentials","main":"dist/client.js","scripts":{"prepublishOnly":"tsc","build":"tsc","lint":"eslint --fix ./src --ext .ts","test":"mocha -b -r ts-node/register test/**/*.test.ts --timeout 15000","cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","ci":"npm run cov && codecov","test-integration":"mocha -b -r ts-node/register -R spec test/*.integration.ts","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"@types/expect.js":"^0.3.29","@types/ini":"^1.3.30","@types/mocha":"^7.0.1","@types/rewire":"^2.5.28","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","codecov":"^3.1.0","eslint":"^7.32.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^5.2.0","nyc":"^13.1.0","rewire":"^4.0.1","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.3","httpx":"^2.2.0","ini":"^1.3.5","kitx":"^2.0.0"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"1af2103c04e4f77076fdbd1d98f2eb3cb984cc9e","_id":"@alicloud/credentials@2.2.3","_nodeVersion":"12.9.0","_npmVersion":"6.10.2","dist":{"shasum":"6c479082e3f627311e2537c0552e3e87a8ecd671","size":24242,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-2.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-2.2.3.tgz"},"_npmUser":{"name":"aliyunsdkteam","email":"sdk-team@alibabacloud.com"},"directories":{},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_2.2.3_1652240657664_0.4687607621085126"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-11T05:03:28.449Z","publish_time":1652240657780,"_cnpm_publish_time":1652240657780},"2.2.2":{"name":"@alicloud/credentials","version":"2.2.2","description":"alibaba cloud node.js sdk credentials","main":"dist/client.js","scripts":{"prepublishOnly":"tsc","build":"tsc","lint":"eslint --fix ./src --ext .ts","test":"mocha -b -r ts-node/register test/**/*.test.ts --timeout 15000","cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","ci":"npm run cov && codecov","test-integration":"mocha -b -r ts-node/register -R spec test/*.integration.ts","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"@types/expect.js":"^0.3.29","@types/ini":"^1.3.30","@types/mocha":"^7.0.1","@types/rewire":"^2.5.28","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","codecov":"^3.1.0","eslint":"^7.32.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^5.2.0","nyc":"^13.1.0","rewire":"^4.0.1","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.3","httpx":"^2.2.0","ini":"^1.3.5","kitx":"^2.0.0"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"1607445dba93de8625c5b60c0c124884ea768800","_id":"@alicloud/credentials@2.2.2","_nodeVersion":"12.9.0","_npmVersion":"6.10.2","dist":{"shasum":"ded22e622e47354be76923caae5802a68fb5fdd0","size":24216,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-2.2.2.tgz"},"_npmUser":{"name":"aliyunsdkteam","email":"sdk-team@alibabacloud.com"},"directories":{},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_2.2.2_1651041094728_0.5627793952845082"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-27T06:36:35.716Z","publish_time":1651041094926,"_cnpm_publish_time":1651041094926},"2.2.1":{"name":"@alicloud/credentials","version":"2.2.1","description":"alibaba cloud node.js sdk credentials","main":"dist/client.js","scripts":{"prepublishOnly":"tsc","build":"tsc","lint":"eslint --fix ./src --ext .ts","test":"mocha -b -r ts-node/register test/**/*.test.ts --timeout 15000","cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","ci":"npm run cov && codecov","test-integration":"mocha -b -r ts-node/register -R spec test/*.integration.ts","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"@types/expect.js":"^0.3.29","@types/ini":"^1.3.30","@types/mocha":"^7.0.1","@types/rewire":"^2.5.28","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","codecov":"^3.1.0","eslint":"^7.32.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^5.2.0","nyc":"^13.1.0","rewire":"^4.0.1","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.3","httpx":"^2.2.0","ini":"^1.3.5","kitx":"^2.0.0"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"8a4ed65ca9849ab768c29afa7c2ce438bc80b964","_id":"@alicloud/credentials@2.2.1","_nodeVersion":"10.18.0","_npmVersion":"6.13.4","dist":{"shasum":"9ab763e53f3022aa2e8d199c924e84eb9b259c2d","size":24188,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-2.2.1.tgz"},"_npmUser":{"name":"aliyunsdkteam","email":"sdk-team@alibabacloud.com"},"directories":{},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_2.2.1_1645166824767_0.26624124748028644"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-18T06:47:11.897Z","publish_time":1645166825124,"_cnpm_publish_time":1645166825124},"2.2.0":{"name":"@alicloud/credentials","version":"2.2.0","description":"alibaba cloud node.js sdk credentials","main":"dist/client.js","scripts":{"prepublishOnly":"tsc","build":"tsc","lint":"eslint --fix ./src --ext .ts","test":"mocha -b -r ts-node/register test/**/*.test.ts --timeout 15000","cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","ci":"npm run cov && codecov","test-integration":"mocha -b -r ts-node/register -R spec test/*.integration.ts","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"@types/expect.js":"^0.3.29","@types/ini":"^1.3.30","@types/mocha":"^7.0.1","@types/rewire":"^2.5.28","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","codecov":"^3.1.0","eslint":"^7.32.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^5.2.0","nyc":"^13.1.0","rewire":"^4.0.1","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.3","httpx":"^2.2.0","ini":"^1.3.5","kitx":"^2.0.0"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"d1152ecc6dcbe07de49f0fc911fbcdcab64ee434","_id":"@alicloud/credentials@2.2.0","_nodeVersion":"10.18.0","_npmVersion":"6.13.4","dist":{"shasum":"1ec909221e49984240c3b42ef049b079daf4426c","size":22587,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-2.2.0.tgz"},"_npmUser":{"name":"aliyunsdkteam","email":"sdk-team@alibabacloud.com"},"directories":{},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_2.2.0_1632709225024_0.17295428456250472"},"_hasShrinkwrap":false,"publish_time":1632709225296,"_cnpm_publish_time":1632709225296,"_cnpmcore_publish_time":"2021-12-16T14:40:15.517Z"},"2.1.1":{"name":"@alicloud/credentials","version":"2.1.1","description":"alibaba cloud node.js sdk credentials","main":"dist/client.js","scripts":{"prepublishOnly":"tsc","build":"tsc","test":"mocha -b -r ts-node/register test/**/*.test.ts --timeout 15000","cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","ci":"npm run cov && codecov","test-integration":"mocha -b -r ts-node/register -R spec test/*.integration.ts","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"@types/expect.js":"^0.3.29","@types/ini":"^1.3.30","@types/mocha":"^7.0.1","@types/rewire":"^2.5.28","codecov":"^3.1.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^5.2.0","nyc":"^13.1.0","rewire":"^4.0.1","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.3","httpx":"^2.2.0","ini":"^1.3.5","kitx":"^2.0.0"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"38d9fc5738c26c213caab9c843801926e76c748f","_id":"@alicloud/credentials@2.1.1","_nodeVersion":"10.18.0","_npmVersion":"6.13.4","dist":{"shasum":"bd443b124d34553b356da9234f2280619f67d6d4","size":20767,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-2.1.1.tgz"},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"_npmUser":{"name":"pagecao","email":"cpj1106@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_2.1.1_1598330829691_0.18417868521526382"},"_hasShrinkwrap":false,"publish_time":1598330829823,"_cnpm_publish_time":1598330829823,"_cnpmcore_publish_time":"2021-12-16T14:40:15.849Z"},"2.1.0":{"name":"@alicloud/credentials","version":"2.1.0","description":"alibaba cloud node.js sdk credentials","main":"dist/client.js","scripts":{"prepublishOnly":"tsc","build":"tsc","test":"mocha -b -r ts-node/register test/**/*.test.ts --timeout 15000","cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","ci":"npm run cov && codecov","test-integration":"mocha -b -r ts-node/register -R spec test/*.integration.ts","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"@types/expect.js":"^0.3.29","@types/ini":"^1.3.30","@types/mocha":"^7.0.1","@types/rewire":"^2.5.28","codecov":"^3.1.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^5.2.0","nyc":"^13.1.0","rewire":"^4.0.1","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.3","httpx":"^2.2.0","ini":"^1.3.5","kitx":"^2.0.0"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"be2ff20e80eae82895e9e31a4b8eb65d342977fa","_id":"@alicloud/credentials@2.1.0","_nodeVersion":"12.8.0","_npmVersion":"6.10.2","dist":{"shasum":"cf56e0059f589ff1afc8a98883e2d07ee3c125d5","size":20016,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-2.1.0.tgz"},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"_npmUser":{"name":"pagecao","email":"cpj1106@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_2.1.0_1583386045507_0.4329450100372707"},"_hasShrinkwrap":false,"publish_time":1583386045623,"_cnpm_publish_time":1583386045623,"_cnpmcore_publish_time":"2021-12-16T14:40:16.125Z"},"2.0.1":{"name":"@alicloud/credentials","version":"2.0.1","description":"alibaba cloud node.js sdk credentials","main":"dist/client.js","scripts":{"prepublishOnly":"tsc","build":"tsc","test":"mocha -b -r ts-node/register test/**/*.test.ts --timeout 15000","cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","ci":"npm run cov && codecov","test-integration":"mocha -b -r ts-node/register -R spec test/*.integration.ts","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"@types/expect.js":"^0.3.29","@types/ini":"^1.3.30","@types/mocha":"^7.0.1","@types/rewire":"^2.5.28","codecov":"^3.1.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^5.2.0","nyc":"^13.1.0","rewire":"^4.0.1","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"httpx":"^2.2.0","kitx":"^2.0.0","ini":"^1.3.5"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"bdd3b54005b8ae46b593aa7a34506d08824b0881","_id":"@alicloud/credentials@2.0.1","_nodeVersion":"13.0.0-pre","_npmVersion":"6.11.3","dist":{"shasum":"e5ca5230ec9bd0a25c794e724dc11e77d0fdfb69","size":19068,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-2.0.1.tgz"},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"_npmUser":{"name":"jacksontian","email":"shyvo1987@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_2.0.1_1580809903979_0.33436894740591305"},"_hasShrinkwrap":false,"publish_time":1580809904183,"_cnpm_publish_time":1580809904183,"_cnpmcore_publish_time":"2021-12-16T14:40:16.752Z"},"2.0.0":{"name":"@alicloud/credentials","version":"2.0.0","description":"alibaba cloud node.js sdk credentials","main":"dist/client.js","scripts":{"prepublishOnly":"tsc","build":"tsc","test":"mocha -b -r ts-node/register test/**/*.test.ts --timeout 15000","cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","ci":"npm run cov && codecov","test-integration":"mocha -b -r ts-node/register -R spec test/*.integration.ts","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"@types/expect.js":"^0.3.29","@types/ini":"^1.3.30","@types/mocha":"^7.0.1","@types/rewire":"^2.5.28","codecov":"^3.1.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^5.2.0","nyc":"^13.1.0","rewire":"^4.0.1","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"httpx":"^2.2.0","kitx":"^2.0.0","ini":"^1.3.5"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"0373d047e54c001e7de00080494f29150803081a","_id":"@alicloud/credentials@2.0.0","_nodeVersion":"13.0.0-pre","_npmVersion":"6.11.3","dist":{"shasum":"5bd24c83cf05c69ea2e43fa2c7f1393c02ec2792","size":19311,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-2.0.0.tgz"},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"_npmUser":{"name":"jacksontian","email":"shyvo1987@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_2.0.0_1580807208487_0.3901507451110011"},"_hasShrinkwrap":false,"publish_time":1580807208649,"_cnpm_publish_time":1580807208649,"_cnpmcore_publish_time":"2021-12-16T14:40:17.421Z"},"1.1.0":{"name":"@alicloud/credentials","version":"1.1.0","description":"alibaba cloud node.js sdk credentials","main":"lib/credentials.js","types":"lib/credentials.d.ts","scripts":{"lint":"eslint --fix lib/*.js test/*.js","test":"mocha -R spec test/*.test.js  --timeout 15000","cov":"nyc --reporter=html --reporter=text --reporter=lcov mocha -R spec test/*.test.js  --timeout 15000","ci":"npm run lint && npm run cov && codecov","test-integration":"mocha -R spec test/*.integration.js","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"muk":"^0.5.3","codecov":"^3.1.0","eslint":"^5.10.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^5.2.0","nyc":"^13.1.0","rewire":"^4.0.1"},"dependencies":{"httpx":"^2.2.0","json-bigint":"^0.2.3","kitx":"^1.2.1","@alicloud/sts-sdk":"^1.0.0","ini":"^1.3.5"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"2d72e54cc4e79ddf4f1b8024bc7fb2e5c10cc2c0","_id":"@alicloud/credentials@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"aliyunsdkteam","email":"sdk-team@alibabacloud.com"},"dist":{"shasum":"259dc38e309dead2ce6da113d8527b62044ff074","size":7871,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-1.1.0.tgz"},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_1.1.0_1578449182134_0.20079795742924178"},"_hasShrinkwrap":false,"publish_time":1578449182276,"_cnpm_publish_time":1578449182276,"_cnpmcore_publish_time":"2021-12-16T14:40:17.621Z"},"1.0.2":{"name":"@alicloud/credentials","version":"1.0.2","description":"alibaba cloud node.js sdk credentials","main":"lib/credentials.js","types":"lib/credentials.d.ts","scripts":{"lint":"eslint --fix lib/*.js test/*.js","test":"mocha -R spec test/*.test.js  --timeout 15000","cov":"nyc --reporter=html --reporter=text --reporter=lcov mocha -R spec test/*.test.js  --timeout 15000","ci":"npm run lint && npm run cov && codecov","test-integration":"mocha -R spec test/*.integration.js","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"muk":"^0.5.3","codecov":"^3.1.0","eslint":"^5.10.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^5.2.0","nyc":"^13.1.0","rewire":"^4.0.1"},"dependencies":{"httpx":"^2.2.0","json-bigint":"^0.2.3","kitx":"^1.2.1","@alicloud/sts-sdk":"^1.0.0","ini":"^1.3.5"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"a457a4b71031133116073d2c3a5ab8062dabe9d3","_id":"@alicloud/credentials@1.0.2","_nodeVersion":"12.8.0","_npmVersion":"6.10.2","dist":{"shasum":"6cb4ba35bfb24b5433dc3fa78ac9191bcdd89fbd","size":7965,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-1.0.2.tgz"},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"_npmUser":{"name":"pagecao","email":"cpj1106@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_1.0.2_1577958111717_0.4110994677313937"},"_hasShrinkwrap":false,"publish_time":1577958112082,"_cnpm_publish_time":1577958112082,"_cnpmcore_publish_time":"2021-12-16T14:40:17.818Z"},"1.0.1":{"name":"@alicloud/credentials","version":"1.0.1","description":"alibaba cloud node.js sdk credentials","main":"lib/credentials.js","types":"lib/credentials.d.ts","scripts":{"lint":"eslint --fix lib/*.js test/*.js","test":"mocha -R spec test/*.test.js  --timeout 15000","cov":"nyc --reporter=html --reporter=text --reporter=lcov mocha -R spec test/*.test.js  --timeout 15000","ci":"npm run lint && npm run cov && codecov","test-integration":"mocha -R spec test/*.integration.js","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"muk":"^0.5.3","codecov":"^3.1.0","eslint":"^5.10.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^5.2.0","nyc":"^13.1.0","rewire":"^4.0.1"},"dependencies":{"httpx":"^2.2.0","json-bigint":"^0.2.3","kitx":"^1.2.1","@alicloud/sts-sdk":"^1.0.0","ini":"^1.3.5"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"c436fcdfe8e9d19946d359f02c20289c16a4af10","_id":"@alicloud/credentials@1.0.1","_nodeVersion":"13.0.0-pre","_npmVersion":"6.11.3","dist":{"shasum":"73e6fb05c6215253a1b7e1fd4ea16e279df5599d","size":7818,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-1.0.1.tgz"},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"_npmUser":{"name":"jacksontian","email":"shyvo1987@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_1.0.1_1574304014764_0.7974230536389846"},"_hasShrinkwrap":false,"publish_time":1574304014866,"_cnpm_publish_time":1574304014866,"_cnpmcore_publish_time":"2021-12-16T14:40:18.007Z"},"1.0.0":{"name":"@alicloud/credentials","version":"1.0.0","description":"alibaba cloud node.js sdk credentials","main":"lib/credentials.js","scripts":{"lint":"eslint --fix lib/*.js test/*.js","test":"mocha -R spec test/*.test.js  --timeout 15000","cov":"nyc --reporter=html --reporter=text --reporter=lcov mocha -R spec test/*.test.js  --timeout 15000","ci":"npm run lint && npm run cov && codecov","test-integration":"mocha -R spec test/*.integration.js","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"muk":"^0.5.3","codecov":"^3.1.0","eslint":"^5.10.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^5.2.0","nyc":"^13.1.0","rewire":"^4.0.1"},"dependencies":{"httpx":"^2.2.0","json-bigint":"^0.2.3","kitx":"^1.2.1","@alicloud/sts-sdk":"^1.0.0","ini":"^1.3.5"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"5270529a081e91692d77b038f9b8bc8e0811f15a","_id":"@alicloud/credentials@1.0.0","_nodeVersion":"13.0.0-pre","_npmVersion":"6.11.3","dist":{"shasum":"e4a180c8227036c3d063cd37e6635056878d9243","size":7670,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-1.0.0.tgz"},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"_npmUser":{"name":"jacksontian","email":"shyvo1987@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_1.0.0_1574238470244_0.5802848144323156"},"_hasShrinkwrap":false,"publish_time":1574238470443,"_cnpm_publish_time":1574238470443,"_cnpmcore_publish_time":"2021-12-16T14:40:18.224Z"},"0.1.0":{"name":"@alicloud/credentials","version":"0.1.0","description":"alibaba cloud node.js sdk credentials","main":"lib/credentials.js","scripts":{"lint":"eslint --fix lib/*.js test/*.js","test":"mocha -R spec test/*.test.js  --timeout 15000","cov":"nyc --reporter=html --reporter=text --reporter=lcov mocha -R spec test/*.test.js  --timeout 15000","ci":"npm run lint && npm run cov && codecov","clean":"rm -rf coverage"},"repository":{"type":"git","url":"git+https://github.com/aliyun/nodejs-credentials.git"},"keywords":["alibaba cloud","sdk","credentials"],"author":{"name":"Alibaba Cloud SDK"},"license":"MIT","devDependencies":{"muk":"^0.5.3","codecov":"^3.1.0","eslint":"^5.10.0","expect.js":"^0.3.1","mm":"^2.4.1","mocha":"^5.2.0","nyc":"^13.1.0","rewire":"^4.0.1"},"dependencies":{"@alicloud/sts-sdk":"^1.0.0","ini":"^1.3.5"},"bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","gitHead":"c38af9a039b42daccb338e6a32a2bc5e8dd9628f","_id":"@alicloud/credentials@0.1.0","_npmVersion":"6.1.0","_nodeVersion":"10.5.0","_npmUser":{"name":"jacksontian","email":"shyvo1987@gmail.com"},"dist":{"shasum":"4e54e7b8c69ca2f98712b3acfbec25c8d3e734dd","size":3230,"noattachment":false,"key":"/@alicloud/credentials/-/@alicloud/credentials-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@alicloud/credentials/download/@alicloud/credentials-0.1.0.tgz"},"maintainers":[{"name":"aliyunsdkteam","email":""},{"name":"console-fe","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"pagecao","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials_0.1.0_1551417092119_0.06464941801655111"},"_hasShrinkwrap":false,"publish_time":1551417092364,"_cnpm_publish_time":1551417092364,"_cnpmcore_publish_time":"2021-12-16T14:40:18.462Z"}},"readme":"English | [简体中文](README-CN.md)\n# Alibaba Cloud Credentials for TypeScript/Node.js\n\n[![npm version](https://badge.fury.io/js/@alicloud%2fcredentials.svg)](https://www.npmjs.com/package/@alicloud/credentials)\n[![Travis Build Status](https://api.travis-ci.org/aliyun/credentials-nodejs.svg?branch=master)](https://travis-ci.org/aliyun/credentials-nodejs)\n[![codecov](https://codecov.io/gh/aliyun/credentials-nodejs/branch/master/graph/badge.svg)](https://codecov.io/gh/aliyun/credentials-nodejs)\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE)\n\n## Installation\n\n```bash\nnpm install @alicloud/credentials\n```\n\n**Node.js >= 8.5.0** required.\n\n\n## Quick Examples\nBefore you begin, you need to sign up for an Alibaba Cloud account and retrieve your [Credentials](https://usercenter.console.aliyun.com/#/manage/ak).\n\n### Credential Type\n\n#### access_key\nSetup access_key credential through [User Information Management][ak], it have full authority over the account, please keep it safe. Sometimes for security reasons, you cannot hand over a primary account AccessKey with full access to the developer of a project. You may create a sub-account [RAM Sub-account][ram] , grant its [authorization][permissions]，and use the AccessKey of RAM Sub-account.\n```ts\nimport Credential, { Config } from '@alicloud/credentials';\nconst config: Config = {\n  type:               'access_key',       // credential type\n  accessKeyId:        'accessKeyId',      // AccessKeyId of your account\n  accessKeySecret:    'accessKeySecret',  // AccessKeySecret of your account\n}\nconst cred = new Credential(config);\nlet accessKeyId: string = await cred.getAccessKeyId();\nlet accessKeySecret: string = await cred.getAccessKeySecret();\nlet type: string = cred.getType();\n  \n```\n\n#### sts\nCreate a temporary security credential by applying Temporary Security Credentials (TSC) through the Security Token Service (STS).\n```ts\nimport Credential, { Config } from '@alicloud/credentials';\nconst config: Config = {\n  type:                  'sts',             // credential type\n  accessKeyId:           'accessKeyId',     // AccessKeyId of your account\n  accessKeySecret:       'accessKeySecret', // AccessKeySecret of your account\n  securityToken:         'securityToken',   // Temporary Security Token\n}\nconst cred = new Credential(config);\nlet accessKeyId: string = await cred.getAccessKeyId();\nlet accessKeySecret: string = await cred.getAccessKeySecret();\nlet type: string = cred.getType();\n```\n\n#### ram_role_arn\nBy specifying [RAM Role][RAM Role], the credential will be able to automatically request maintenance of STS Token. If you want to limit the permissions([How to make a policy][policy]) of STS Token, you can assign value for `Policy`.\n```ts\nimport Credential, { Config } from '@alicloud/credentials';\nconst config: Config = {\n  type:                 'ram_role_arn',     // credential type\n  accessKeyId:          'accessKeyId',      // AccessKeyId of your account\n  accessKeySecret:      'accessKeySecret',  // AccessKeySecret of your account\n  roleArn:              'roleArn',          // Format: acs:ram::USER_ID:role/ROLE_NAME\n  roleSessionName:      'roleSessionName',  // Role Session Name\n  policy:               'policy',           // Not required, limit the permissions of STS Token\n  roleSessionExpiration: 3600,              // Not required, limit the Valid time of STS Token\n}\nconst cred = new Credential(config);\nlet accessKeyId: string = await cred.getAccessKeyId();\nlet accessKeySecret: string = await cred.getAccessKeySecret();\nlet securityToken: string = await cred.getSecurityToken();\nlet type: string = cred.getType();\n```\n\n#### oidc_role_arn\nBy specifying [OIDC Role][OIDC Role], the credential will be able to automatically request maintenance of STS Token. If you want to limit the permissions([How to make a policy][policy]) of STS Token, you can assign value for `Policy`.\n```ts\nimport Credential, { Config } from '@alicloud/credentials';\nconst config: Config = {\n  type:                   'oidc_role_arn',    // credential type\n  roleArn:                'roleArn',          // Format: acs:ram::USER_Id:role/ROLE_NAME roleArn can be replaced by setting environment variable: ALIBABA_CLOUD_ROLE_ARN\n  oidcProviderArn:        'oidcProviderArn',  // Format: acs:ram::USER_Id:oidc-provider/ROLE_NAME oidcProviderArn can be replaced by setting environment variable: ALIBABA_CLOUD_OIDC_PROVIDER_ARN\n  oidcTokenFilePath:      '/Users/xxx/xxx',   // Format: path  OIDCTokenFilePath can be replaced by setting environment variable: ALIBABA_CLOUD_OIDC_TOKEN_FILE\n  roleSessionName:        'roleSessionName',  // Role Session Name\n  policy:                 'policy',           // Not required, limit the permissions of STS Token\n  roleSessionExpiration:   3600,              // Not required, limit the Valid time of STS Token\n}\nconst cred = new Credential(config);\nlet accessKeyId: string = await cred.getAccessKeyId();\nlet accessKeySecret: string = await cred.getAccessKeySecret();\nlet securityToken: string = await cred.getSecurityToken();\nlet type: string = cred.getType();\n```\n\n#### ecs_ram_role\nBy specifying the role name, the credential will be able to automatically request maintenance of STS Token.\n```ts\nimport Credential, { Config } from '@alicloud/credentials';\nconst config: Config = {\n  type:                 'ecs_ram_role',       // credential type\n  roleName:             'roleName',           // `roleName` is optional. It will be retrieved automatically if not set. It is highly recommended to set it up to reduce requests.\n}\nconst cred = new Credential(config);\nlet accessKeyId: string = await cred.getAccessKeyId();\nlet accessKeySecret: string = await cred.getAccessKeySecret();\nlet securityToken: string = await cred.getSecurityToken();\nlet type: string = cred.getType();\n```\n\n#### rsa_key_pair\nBy specifying the public key ID and the private key file, the credential will be able to automatically request maintenance of the AccessKey before sending the request. Only Japan station is supported. \n```ts\nimport Credential, { Config } from '@alicloud/credentials';\nconst config: Config = {\n  type:                     'rsa_key_pair',       // credential type\n  privateKeyFile:           'privateKeyFile',     // The file path to store the PrivateKey\n  publicKeyId:              'publicKeyId',        // PublicKeyId of your account\n}\nconst cred = new Credential(config);\nlet accessKeyId: string = await cred.getAccessKeyId();\nlet accessKeySecret: string = await cred.getAccessKeySecret();\nlet securityToken: string = await cred.getSecurityToken();\nlet type: string = cred.getType();\n```\n\n#### credentials_uri\nBy specifying a local or remote URI to get credentials and refresh automanticly.\n\n```ts\nimport Credential, { Config } from '@alicloud/credentials';\nconst config: Config = {\n  type: 'credentials_uri',\n  credentialsURI: 'http://a_local_or_remote_address/'  //credentialsURI can be replaced by setting environment variable: ALIBABA_CLOUD_CREDENTIALS_URI\n};\nconst cred = new Credential(config);\nlet accessKeyId: string = await cred.getAccessKeyId();\nlet accessKeySecret: string = await cred.getAccessKeySecret();\nlet securityToken: string = await cred.getSecurityToken();\nlet type: string = cred.getType();\n```\n\nThe URI must reponse meets following conditions:\n- response status code is 200\n- response body struct must be:\n\n```json\n{\n  \"Code\": \"Success\",\n  \"AccessKeySecret\": \"AccessKeySecret\",\n  \"AccessKeyId\": \"AccessKeyId\",\n  \"Expiration\": \"2021-09-26T03:46:38Z\",\n  \"SecurityToken\": \"SecurityToken\"\n}\n```\n\n#### bearer\nIf credential is required by the Cloud Call Centre (CCC), please apply for Bearer Token maintenance by yourself.\n```ts\nimport Credential, { Config } from '@alicloud/credentials';\nconst config: Config = {\n  type:                 'bearer',            // credential type\n  bearerToken:          'bearerToken',       // BearerToken of your account\n}\nconst cred = new Credential(config);\nlet bearerToken: string = await cred.getBearerToken();\nlet type: string = cred.getType();\n```\n\n### Provider\nIf you call `new Credential()` with empty, it will use provider chain to get credential for you.\n\n#### 1. Environment Credentials\nThe program first looks for environment credentials in the environment variable. If the `ALIBABA_CLOUD_ACCESS_KEY_ID` and `ALIBABA_CLOUD_ACCESS_KEY_SECRET` environment variables are defined and are not empty, the program will use them to create the default credential. If not, the program loads and looks for the client in the configuration file.\n\n#### 2. Config File\nIf there is `~/.alibabacloud/credentials` default file (Windows shows `C:\\Users\\USER_NAME\\.alibabacloud\\credentials`), the program will automatically create credential with the name of 'default'. The default file may not exist, but a parse error throws an exception. The specified files can also be loaded indefinitely: `AlibabaCloud::load('/data/credentials', 'vfs://AlibabaCloud/credentials', ...);` This configuration file can be shared between different projects and between different tools. Because it is outside the project and will not be accidentally committed to the version control. Environment variables can be used on Windows to refer to the home directory %UserProfile%. Unix-like systems can use the environment variable $HOME or ~ (tilde). The path to the default file can be modified by defining the `ALIBABA_CLOUD_CREDENTIALS_FILE` environment variable.\n\n```ini\n[default]                          # Default credential\ntype = access_key                  # Certification type: access_key\naccess_key_id = foo                # access key id\naccess_key_secret = bar            # access key secret\n```\n\n#### 3. Instance RAM Role\nIf the environment variable `ALIBABA_CLOUD_ECS_METADATA` is defined and not empty, the program will take the value of the environment variable as the role name and request `http://100.100.100.200/latest/meta-data/ram/security-credentials/` to get the temporary Security credential.\n\n#### 4. Credentials URI\nIf the environment variable `ALIBABA_CLOUD_CREDENTIALS_URI` is defined and not empty,\nthe program will take the value of the environment variable as the credentials uri.\n\n## Test & Coverage\n\n* run test\n\n```\nnpm run test\n```\n\n* run code coverage\n\n```\nnpm run cov\n```\n\n\n## License\n\n[MIT](LICENSE)\n\nCopyright (c) 2009-present, Alibaba Cloud All rights reserved.","_attachments":{},"homepage":"https://github.com/aliyun/nodejs-credentials#readme","bugs":{"url":"https://github.com/aliyun/nodejs-credentials/issues"},"license":"MIT"}