Socket
Book a DemoInstallSign in
Socket

@kyso/publish

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kyso/publish

## Installation

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

@kyso/publish

Installation

npm install @kyso/publish

or

yarn add @kyso/publish

Usage

Publish

const { publish } = require('@kyso/publish')

publish({
  name, // the name of the study to be published
  main, // the main file to be rendered on kyso
  user, // kyso user object with at least nickname (str) sessionToken (str), and objectId (str)
  files, // optional (for use in browser) is an array of files
  onProgress, // option function to check progress
  directory, // optional (for use with nodejs) is a local folder to read the files from
  apiUrl // url of kyso api, defaults to https://api.kyso.io
})

files (for use in browser) is an array of files in the form:

{
  data: Buffer,
  path: String,
}

Buffer

This is useful for preparing files in a browser, turns a string into a buffer

const { Buffer } = require('@kyso/publish')

const buf = Buffer.from('somestring')

FAQs

Package last updated on 19 Sep 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.