Socket
Socket
Sign inDemoInstall

@cloudbase/adapter-bd_game

Package Overview
Dependencies
1
Maintainers
8
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @cloudbase/adapter-bd_game

baidu minigame adapter of cloudbase javascript SDK


Version published
Weekly downloads
2
increased by100%
Maintainers
8
Install size
47.3 kB
Created
Weekly downloads
 

Readme

Source

@cloudbase/adapter-bd_game

NPM Version

tcb-js-sdk百度小游戏适配器

安装

npm i @cloudbase/adapter-bd_game -S

使用

ES Module

import tcb from 'tsb-js-sdk';
import adapterForWxMp from '@cloudbase/adapter-bd_game';

// 以下两种方式二选一
// 1.单参数传入
tcb.useAdapters(adapterForWxMp);
// 2.数组形式传参
tcb.useAdapters([adapterForWxMp]);
// adapter必须在init之前传入
tcb.init();

CommonJS

const tcb = require('tsb-js-sdk');
const adapterForWxMp = require('@cloudbase/adapter-bd_game');

// 以下两种方式二选一
// 1.单参数传入
tcb.useAdapters(adapterForWxMp.adapter);
// 2.数组形式传参
tcb.useAdapters([adapterForWxMp.adapter]);
// adapter必须在init之前传入
tcb.init();

FAQs

Last updated on 10 Feb 2020

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