# validate-table-rules

> Module that will allow you to pass in a rule as a string and convert to expression

Latest version **1.0.2** (published 2019-05-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install validate-table-rules
pnpm add validate-table-rules
yarn add validate-table-rules
bun add validate-table-rules
```

## 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.2 |
| Published | 2019-05-18 |
| First published | 2019-05-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Christopher Bradley |
| Maintainers | christoper.bradley |
| Keywords | engine, node, javascript, excel, table, validation |

## Links

- npm: https://www.npmjs.com/package/validate-table-rules
- npm.io page: https://npm.io/package/validate-table-rules

## Dependencies (1)

- [chalk](https://npm.io/package/chalk.md) ^2.4.2

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-05-18
- 1.0.1 — 2019-05-18
- 1.0.0 — 2019-05-18

## README

This package allows you to convert string expressions into actual expressions.
 - Christopher Bradley | declarationcb@gmail.com for questions.

I am actively working on building this to handle a mass range of possible expressions.

<b>Installation</b>

```
npm install validate-table-rules
```

Require the module.

```
'use strict';
const ruleSet = require('validate-table-rules');
```

You must attach the module to the object prototype.

```
Object.prototype.rule = ruleSet.rules;
```

Sample use case

```
console.log(object.rule('[Age] < [Required]'))
```

To list the set of available expressions

```
console.log(object.rule('--help'))
```

Quickstart

```
'use strict';

//  Required module
const ruleSet = require('validate-table-rules');

// Attach module to Object prototype
Object.prototype.rule = ruleSet.rules;

// Declare and object
const object = [
    {Age: 18, Required: 21}
];

// Sample case -> pass in names you
// want to check for in attached object
console.log(object.rule('[Age] < [Required]'))

```

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