# component-validator

> validate and normalize component.jsons

Latest version **1.1.1** (published 2014-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install component-validator
pnpm add component-validator
yarn add component-validator
bun add component-validator
```

## 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.1.1 |
| Published | 2014-09-26 |
| First published | 2014-02-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Jonathan Ong |
| Maintainers | jongleberry, tootallnate, tjholowaychuk, juliangruber, yields, ianstormtaylor, timoxley, mattmueller, jonathanong, queckezz, anthonyshort, dominicbarnes, clintwood, thehydroimpulse, stephenmathieson, trevorgerhardt, timaschew, jasonkuhrt |

## Links

- npm: https://www.npmjs.com/package/component-validator
- Repository: https://github.com/component/validator.js
- Issues: https://github.com/component/validator.js/issues
- npm.io page: https://npm.io/package/component-validator

## Dependencies (1)

- [component-consoler](https://npm.io/package/component-consoler.md) ^2.0.0

## Recent versions

- 1.1.1 (latest) — 2014-09-26
- 1.1.0 — 2014-04-07
- 1.0.2 — 2014-04-02
- 1.0.1 — 2014-04-02
- 1.0.0 — 2014-04-02
- 0.0.0 — 2014-02-01

## README

# component-validator

Validate a `component.json` and normalize its values.
This tries to be lenient by fixing any issues and logging instead of throwing, though throwing may be more appropriate.

## API

### validate(json, [options])

- `json` - the contents of a `component.json`.
- `options` - an object with the following properties:
  - `filename` - the path of the `component.json` for logging
  - `verbose` <true> - print the log messages to `stderr`

## License

The MIT License (MIT)

Copyright (c) 2014 Jonathan Ong me@jongleberry.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

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