New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

test-oss-prefix

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-oss-prefix

a oss api wraper for cnpmjs.org nfs

latest
npmnpm
Version
0.0.13
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

oss-cnpm

NPM version build status Test coverage David deps npm download

oss wraper for cnpmjs.org NFS

Usage

const oss = require('oss-cnpm');

const client = oss.create({
  accessKeyId: 'your id',
  accessKeySecret: 'your secret',
  // change to your endpoint
  endpoint: 'oss-cn-shenzhen.aliyuncs.com',
  bucket: 'your bucket',
  mode: 'public or private',
  prefix: 'subdir in your bucket',
});

Cluster mode

const oss = require('oss-cnpm');

const client = oss.create({
  mode: 'public or private',
  schedule: 'masterSlave or roundRobin', // defualt is masterSlave
  cdnBaseUrl: null, // set your custom cdn baseUrl, like `https://cdn.npm.taobao.org/`
  defaultHeaders: {
    'Cache-Control': 'max-age=0, s-maxage=86400',
  },
  cluster: [
    {
      accessKeyId: 'your id1',
      accessKeySecret: 'your secret1',
      endpoint: 'oss-cn-shenzhen.aliyuncs.com',
      bucket: 'your bucket1',
    },
    {
      accessKeyId: 'your id2',
      accessKeySecret: 'your secret2',
      endpoint: 'oss-cn-hangzhou.aliyuncs.com',
      bucket: 'your bucket2',
    },
  ],
});

Test keys

https://github.com/cnpm/oss-cnpm/wiki

License

MIT

Keywords

oss

FAQs

Package last updated on 21 May 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