North Pittsburgh Meatpackers
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    object-storagepublic

    node-object-storage

    node client library for Openstack Object Storage

    Build Status

    Installation

    npm install object-storage
    

    Example

    var ObjectStorage = require('object-storage'),
    	storage = new ObjectStorage({
    		host: '',
    		username: '',
    		password: ''
    	});
    
    storage.create('mycontainer').then(function() {
    	storage.putFile({src: 'path/to/file.jpg', dst: 'mycontainer/file.jpg'}).then(function(url) {
    		console.log('Object storage url to file', url);
    	});
    });
    

    See object-storage.test.js for more examples.

    Run Tests

    npm test
    

    Enable debugging output

    Set DEBUG environment variable to object-storage

    DEBUG=object-storage node ./app.js
    

    install

    npm i object-storage

    Downloadslast 7 days

    0

    version

    0.6.2

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar