You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

nec-sdk

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nec-sdk

NetEase Cloud SDK for JavaScript

1.0.2
latest
Source
npm
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

NetEase Cloud SDK for JavaScript in Node.js

Since there's no official NetEase Cloud SDK for JavaScript, I stole aws-sdk-js and made this crappy port.

Installing in Node.js

npm install nec-sdk

Usage and Getting Started

This SDK is very similar to AWS SDK.

You can find a getting started guide for AWS SDK at:

http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/

Supported Services

Currently only NOS (Netease Object Storage) is supported. And the API definitions is just a copy of AWS S3, with metadata and default config modified.

Samples

var NEC = require('nec-sdk');

NEC.config.update({ accessKeyId: 'akid', secretAccessKey: 'secret' });

var nos = new NEC.NOS();

nos.putObject({
  Bucket: 'myBucket',
  Key: 'myKey',
  Body: 'Hello!'
}, function(err, data) {
  if (err) {
    console.log(err);
  } else {
    console.log('Successfully uploaded data to myBucket/myKey');
  }
});

License

The license of AWS SDK JS is Apache License, Version 2.0. And this SDK is distributed under the same licence.

It seems the license asks me to list all modified files, they are:

  • .gitignore
  • apis/metadata.json
  • lib/aws.js
  • lib/signers/request_signer.js
  • NOTICE.txt
  • package.json
  • README.md

And I add a few files of my own, they are:

  • apis/nos-2010-12-05.min.json
  • lib/signers/nos.js

I'm not quite familiar with the license. Please let me know if I did something wrong. Thank you!

Change Log

  • 2015-05-05 v1.0.2
    • Update README.
    • NOS: Allow x-nos-* header features.
  • 2015-02-05 v1.0.1
    • NOS: Allow slashes in object key.
  • 2015-02-04 v1.0.0
    • Add NOS API.

Keywords

api

FAQs

Package last updated on 05 May 2015

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