# upsert-envelope

> A javascript envelope for an upsert

Latest version **1.0.0** (published 2015-06-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install upsert-envelope
pnpm add upsert-envelope
yarn add upsert-envelope
bun add upsert-envelope
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-06-17 |
| First published | 2015-06-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jeff Ashton |
| Maintainers | cantireinnovations |
| Keywords | upsert, envelope |

## Links

- npm: https://www.npmjs.com/package/upsert-envelope
- Repository: https://github.com/JeffAshtonCT/upsert-envelope
- Homepage: https://github.com/JeffAshtonCT/upsert-envelope#readme
- Issues: https://github.com/JeffAshtonCT/upsert-envelope/issues
- npm.io page: https://npm.io/package/upsert-envelope

## Dependencies (1)

- [expect](https://npm.io/package/expect.md) ^1.6.0

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-06-17

## README

# upsert-envelope

A tiny javascript envelope for an upsert (insert or update) operation results.

## Installation

```
$ npm install upsert-envelope
```

## Usage

```js
var UpsertEnvelope = require( 'upsert-envelope' );

var resource = 'anything';

// udpated resource
var env = new UpsertEnvelope( resource );
console.log( 'resource: ' + env.resource );
console.log( 'inserted: ' + env.inserted );

// inserted resource
var env = new UpsertEnvelope( resource, true );
console.log( 'resource: ' + env.resource );
console.log( 'inserted: ' + env.inserted );

```

---
_Source: https://npm.io/package/upsert-envelope · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
