# ntama

> Field Checker for node.js

Latest version **1.0.1** (published 2022-02-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install ntama
pnpm add ntama
yarn add ntama
bun add ntama
```

## 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.1 |
| Published | 2022-02-27 |
| First published | 2022-02-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Parthka |
| Maintainers | theparthka |
| Keywords | ntama, field, checker, validator |

## Links

- npm: https://www.npmjs.com/package/ntama
- Repository: https://github.com/theparthka/nodevalidator
- Homepage: https://github.com/ntama/nodevalidator#readme
- Issues: https://github.com/ntama/nodevalidator/issues
- npm.io page: https://npm.io/package/ntama

## Dependencies (1)

- [phone](https://npm.io/package/phone.md) ^3.1.12

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-02-27

## README

# Ntama
## Installation

```
npm install ntama
```

## Example
```javascript
//import natama
const ntama = require("ntama");

//Define restrictions
const restrictions = {
    f_name: {
        type: 'string'
    },
    l_name: {
        optional: true,
    },
    username: {
        type: 'string',
        min: 7,
        max: 20
    },
    email: {
        type: 'email'
    },
    mobile: {
        optional: true,
        type: 'phone'
    },
    bod: {
        type: 'date'
    }
}

//Generate validator by the restrictions
const field = ntama(restrictions)

//Then perform validation
const checkdata = field.check({
    username: "parthka",
    f_name: "Parthka",
    email: 'parthka.2005@gmail.com',
    l_name: "None",
    mobile: "+918866881066",
    bod: 'Sun Oct 20 2007'
});

console.log(checkdata)
```



## License

MIT License

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