diy / assembly-assets

Mutate a transloadit assembly results array in to a diy assets object.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

assembly-assets

Mutate a transloadit assembly results array in to a diy assets object.

Transloadit assembly results object come over as a custom Array like object with properties each result type. In order to persist to diy as asset objects we need to massage them in to object literals that can be stringified.

Install

npm install diy/assembly-assets

Usage

var assets = require('diy-assembly-assets');

var a = assets(assembly.results);

License

Apache2

About

Mutate a transloadit assembly results array in to a diy assets object.

License:Apache License 2.0


Languages

Language:JavaScript 100.0%