New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

edward-aly-oss

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edward-aly-oss

aly oss

  • 0.3.17
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

aly oss

JS代码
const oss = require("edward-ali-oss");

console.log(oss.version);

// 初始化
let demo = new oss({
	region: 'oss-cn-beijing', // 地域
	accessKeyId: '***********', // 你的阿里云AK
	accessKeySecret: '*************', // 你的阿里云AS
	bucket: 'edward-blog' // bucket名称
});

// 列表返回1000个
demo.list().then(data => {
	data.objects.map(i => {
		console.log(i.name);
	})
})

// 删除一个
demo.delete('static/website2018/news/demo/images/icon-1a36c.svg').then(data => {
	console.log(data);
})

// 删除一组
demo.drop(['static/website2018/news/demo/styles/2.1e2ff18d5253ad1d6472.css', 'static/website2018/news/demo/styles/3.bca4f6e08fd8c56cbc04.css']).then(data => {
	console.log(data);
})

// 上传一个
demo.put('static/website2018/news/demo/javascripts/ossDel.js', '/Users/edward/linux/myoss/ossDel.js').then(data => {
	console.log(data);
})

FAQs

Package last updated on 07 Mar 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc