# @nathanfaucett/changeset

> ecto like changeset for javascript/node.js

Latest version **0.1.0** (published 2018-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nathanfaucett/changeset
pnpm add @nathanfaucett/changeset
yarn add @nathanfaucett/changeset
bun add @nathanfaucett/changeset
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-07-15 |
| First published | 2018-07-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nathan Faucett |
| Maintainers | nathanfaucett |
| Keywords | changeset |

## Links

- npm: https://www.npmjs.com/package/@nathanfaucett/changeset
- Repository: https://gitlab.com/nathanfaucett/js-changeset
- Homepage: https://gitlab.com/nathanfaucett/js-changeset#README
- Issues: https://gitlab.com/nathanfaucett/js-changeset/issues
- npm.io page: https://npm.io/package/@nathanfaucett/changeset

## Dependencies (4)

- [@nathanfaucett/has](https://npm.io/package/@nathanfaucett/has.md) 0.0
- [@nathanfaucett/keys](https://npm.io/package/@nathanfaucett/keys.md) 0.0
- [@nathanfaucett/array-for_each](https://npm.io/package/@nathanfaucett/array-for_each.md) 0.0
- [@nathanfaucett/is_null_or_undefined](https://npm.io/package/@nathanfaucett/is_null_or_undefined.md) 0.0

## Recent versions

- 0.1.0 (latest) — 2018-07-15

## README

# js-changeset

ecto like changesets for javascript/node.js

```javascript
const validate = (params = {}) =>
	new Changeset(params, ["name", "email", "password"])
		.validateRequired(["email", "password"])
		.validateFormat("email", /@/)
		.validateLength("password", { ">=": 6 });

var changeset = validate({ name: "Bob", email: "bob@mail.com" });
```

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