upsert-envelope
A tiny javascript envelope for an upsert (insert or update) operation results.
Installation
$ npm install upsert-envelope
Usage
var UpsertEnvelope = ; var resource = 'anything'; // udpated resourcevar env = resource ;console;console; // inserted resourcevar env = resource true ;console;console;