New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

joi-starts-with-ref

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joi-starts-with-ref

Joi custom validator to check if something starts with value of a joi ref

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

joi-starts-with-ref

Joi custom validator to allow validating a field by checking it starts with the value of another field.

Install

npm i joi-starts-with-ref -S

Usage

See the tests for more examples

const Joi = require("joi");
const joiStartsWith = require("joi-starts-with-ref");

module.exports = Joi.object().keys({
  "firstName": Joi.string(),
  "fullName": joiStartsWith.string().startsWithRef("firstName").required()
});

Keywords

FAQs

Package last updated on 21 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc