59naga/nipper

View on GitHub
README.md

Summary

Maintainability
Test Coverage
Nipper
---

<p align="right">
  <a href="https://npmjs.org/package/nipper">
    <img src="https://img.shields.io/npm/v/nipper.svg?style=flat-square">
  </a>
  <a href="https://travis-ci.org/59naga/nipper">
    <img src="http://img.shields.io/travis/59naga/nipper.svg?style=flat-square">
  </a>
  <a href="https://ci.appveyor.com/project/59naga/nipper">
    <img src="https://img.shields.io/appveyor/ci/59naga/nipper.svg?style=flat-square">
  </a>
  <a href="https://codeclimate.com/github/59naga/nipper/coverage">
    <img src="https://img.shields.io/codeclimate/github/59naga/nipper.svg?style=flat-square">
  </a>
  <a href="https://codeclimate.com/github/59naga/nipper">
    <img src="https://img.shields.io/codeclimate/coverage/github/59naga/nipper.svg?style=flat-square">
  </a>
  <a href="https://gemnasium.com/59naga/nipper">
    <img src="https://img.shields.io/gemnasium/59naga/nipper.svg?style=flat-square">
  </a>
</p>

> Work in progress :innocent:

Installation
---
```bash
npm install nipper --save
```

Motivation
---
> [Proposal: string().truncate() #833 - hapijs/joi](https://github.com/hapijs/joi/issues/833)

Usage
---

## `enforce(value, schema)` -> `enforcedValue`
## `enforceObject(object, schemas)` -> `enforcedValues`

Development
---
Requirement global
* NodeJS v5.10.0
* Npm v3.8.3

```bash
git clone https://github.com/59naga/nipper
cd nipper
npm install

npm test
```

License
---
[MIT](http://59naga.mit-license.org/)