Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
aliyun OSS(open storage service) node client. generator friendly.
a node.js wrapper for OSS restful api
npm install ali-oss
init a oss client, need accessKeyId
, accessKeySecret
and bucket
var OSS = require('ali-oss');
var client = OSS.create({
accessKeyId: 'id',
accessKeySecret: 'xxx',
bucket: 'test'
});
options:
oss.aliyuncs.com:8080
yield* client.upload(file, name, options);
options:
yield* client.get(name, path, options);
options:
yield* client.remove(name, options);
options:
if you do not use node v0.11+ or do not use node --harmony
.
this module will use regenerator to convert to es5 style.
so you only need to use co wrap the generator function into callback style:
var co = require('co');
var OSS = require('ali-oss');
var client = OSS.create({});
client.update = co(client.update);
client.get = co(client.get);
client.remove = co(client.remove);
then you use these APIs as common async callback APIs. checkout the callback_example.js.
MIT
0.0.2 / 2014-04-10
FAQs
aliyun oss(object storage service) node client
The npm package ali-oss receives a total of 49,298 weekly downloads. As such, ali-oss popularity was classified as popular.
We found that ali-oss demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.