0.0.11 • Published 5 years ago

nebula-voyager-system-uploader v0.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

nebula-voyager-system-uploader

Uploads Nebula particle systems to the cloud.

Usage

Here's a really basic example usage

import { SystemUploader } from 'nebula-voyager-system-uploader';
import mySystemJson from './my-particle-system';

const upload = async system => {
  const systemUploader = new SystemUploader({
    system,
    user,
    db,
    storage,
    timestamp,
  });

  try {
    const doc = await systemUploader
      .validate()
      .generatePreview()
      .upload();

    return doc;
  } catch (e) {
    console.error(e);
  }
};

upload(mySystemJson).then(console.log);
0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago