nebula-voyager-system-uploader
v0.0.11
Published
Uploads Nebula particle systems to the cloud.
Downloads
13
Readme
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);