Socket
Socket
Sign inDemoInstall

@alicloud/mpserverless-node-sdk

Package Overview
Dependencies
6
Maintainers
11
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @alicloud/mpserverless-node-sdk

Node.js SDK for Alicloud MPServerless


Version published
Weekly downloads
14
increased by180%
Maintainers
11
Install size
704 kB
Created
Weekly downloads
 

Readme

Source

node-sdk

MPServerless SDK for Node.js

Getting Started

tnpm install --save @alicloud/mpserverless-node-sdk

Usage

// app.js
const MPServerless = require('@alicloud/mpserverless-node-sdk');
const mpServerless = new MPServerless({
  spaceId: 'e6eade0d-d0f7-4771-a9e4-15b78ac39060',
  endpoint: 'https://api.bspapp.com',
  serverSecret: 'abclsfdsfs/=',
  logger: console,
});

// controller/home.js
exports.index = async () => {
  const data = await ampServerless.db.find();
  const newFile = await mpServerless.file.uploadFile();
  const newFileWithUser = await mpServerless.file.uploadFile();
};

FAQs

Last updated on 06 Nov 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc