open-index/open-npm huggingface dataset:
npm package: @kinday/njv
Description: ⚠️ **Work in progress! Nothing to see here!** ⚠️
Latest version: 0.4.0

# njv

⚠️ **Work in progress! Nothing to see here!** ⚠️

## Docs

Import:

```js
import validate from 'njv'
```

Interface:

```js
const schema = { type: 'number' }

console.log(validate(schema, 5))
// { valid: true, errors: [] }

console.log(validate(schema, 'invalid'))
// {
//   valid: false,
//   errors: [
//     {
//       absoluteInstancePath: [],
//       absoluteSchemaPath: ["type"],
//       context: undefined,
//       validator: 'type',
//       validatorValue: 'number',
//     }
//   ]
// }