Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cloudbase/adapter-cocos_native

Package Overview
Dependencies
Maintainers
8
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudbase/adapter-cocos_native

cocos native adapter of cloudbase javascript SDK

  • 0.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
8
Weekly downloads
 
Created
Source

@cloudbase/adapter-cocos_native

NPM Version

tcb-js-sdk cocos native适配器

安装

npm i @cloudbase/adapter-cocos_native -S

使用

ES Module

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

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

CommonJS

const tcb = require('tsb-js-sdk');
const {adapter} = require('@cloudbase/adapter-cocos_native');

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

FAQs

Package last updated on 14 Jan 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc