0.0.11 • Published 2 years ago

nebula-voyager-system-uploader v0.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago