https://github.com/rcos/rpi-validator
This repository contains string validation specific to RPI. Powered by Rensselaer Center for the Open Source.
https://github.com/rcos/rpi-validator
rin-validator rpi string validator validators
Last synced: 2 months ago
JSON representation
This repository contains string validation specific to RPI. Powered by Rensselaer Center for the Open Source.
- Host: GitHub
- URL: https://github.com/rcos/rpi-validator
- Owner: rcos
- License: mit
- Created: 2018-09-19T03:17:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-04T21:51:56.000Z (over 7 years ago)
- Last Synced: 2025-09-01T17:18:07.466Z (7 months ago)
- Topics: rin-validator, rpi, string, validator, validators
- Language: JavaScript
- Size: 71.3 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rpi-validator [](https://travis-ci.org/rcos/rpi-validator)  

This repository contains string validation specific to RPI. Powered by Rensselaer Center for the Open Source.
This package only validates strings. It does not validate inputs with `number` or other types.
### Install ###
- Npm: `npm install rpi-validator`
- Yarn: `yarn install rpi-validator`
View the project on NPM: https://www.npmjs.com/package/rpi-validator
### Example ###
```
let rpiValidator = require('rpi-validator');
rpiValidator.isRIN('shirley'); //false
rpiValidator.isRIN('667986864'); //true
```
### Available Validators ###
- isCRN()
- isISO()
- isRIN()
- isSubjectCode()
- isRPIEmail()
### Contributing ###
Anybody is welcome to contribute to this repository. It's what open source is all about. Make sure code is tested and that the existing tests pass. Please use issues to track bugs and/or changes.
This repository requires node to be installed in order for it to run. I think it requires version 8 or higher.
Run `yarn install` to install all dependencies before starting work.
Run the tests using `yarn test`.
### Past Contributors ###
Feel free to reach out with any questions about the repository. However, issues are the best way to get changes made.
- [Jake Billings](https://jakebillings.com)