JSPM

  • Created
  • Published
  • Downloads 768170
  • Score
    100M100P100Q175459F
  • License Apache-2.0

S3 compatible cloud storage client

Package Exports

  • minio

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 (minio) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Minio Javascript (Nodejs) Library for Amazon S3 cloud storage Gitter

Install from npm Build Status

$ npm install --save minio

Example

#!/usr/bin/env node

var Minio = require('minio')
var Through2 = require('through2')

var s3client = new Minio({
  url: 'https://s3.amazonaws.com',
  accessKey: 'YOUR-ACCESSKEYID',
  secretKey: 'YOUR-SECRETACCESSKEY'
})

var bucketStream = s3client.listBuckets()
bucketStream.pipe(Through2.obj(function(bucket, enc, done) {
  console.log(bucket)
  done()
}))

Documentation

Bucket

makeBucket(bucket, cb)

listBuckets() : Stream

bucketExists(bucket, cb)

removeBucket(bucket, cb)

getBucketACL(bucket, cb)

setBucketACL(bucket, acl, cb)

dropAllIncompleteUploads(bucket, cb)

Object

getObject(bucket, key) Stream

getPartialObject(bucket, key, offset, length) Stream

putObject(bucket, key, Stream, cb)

listObjects(bucket, {prefix: prefix, recursive: true}) : Stream

statObject(bucket, key, cb)

removeObject(bucket, key, cb)

dropIncompleteUpload(bucket, key, cb)

Contribute

Contributors Guide

NPM NPM NPM