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

github.com/yushimatenjin/playcanvas-node

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/yushimatenjin/playcanvas-node

  • v1.4.7
  • Source
  • Go
  • Socket score

Version published
Created
Source

Installation

npm install --save playcanvas-node

Documentation

  • REST API - PLAYCANVAS MANUAL

Example

import PlayCanvas from "playcanvas-node";

const options = {
  accessToken: "xxxxxxxxxxxxxxxx",
  scenes: [xxxxxxx],
  projectId: xxxxx,
  branchId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
  projectName: "xxxxxx"
};
const playcanvas = new PlayCanvas(options);

(async () => {
  const res = await playcanvas.listAssets();
  console.log(res)
})();

Apps

  • Download app
  • Get primary app
  • Get project apps
  • Get app

Assets

  • Create asset
  const options = {
    name: "index.html",
    path: "./dist/index.html"
  };
  await playcanvas.createNewAsset(options);
  • Delete asset
  • Get Asset File
  • Get Asset
  • List assets
  • Update asset

Upload
This is the supported type. .js,.css,.txt,.json,.html https://developer.playcanvas.com/en/user-manual/api/asset-create/

  const playcanvas = new PlayCanvas(options);
  const remotePath = process.env.NODE_ENV === 'development' ? "dev" : "build"
  await playcanvas.updateAssets(dev,"index.html","./dist/index.html");

Branches

  • List branches

Jobs

  • Get job

Projects

  • Archive project

Scenes

  • List scenes

FAQs

Package last updated on 27 Dec 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

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