Socket
Socket
Sign inDemoInstall

@valtech-commerce/joi

Package Overview
Dependencies
7
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @valtech-commerce/joi

joi extensions + extra goodies


Version published
Maintainers
1
Install size
573 kB
Created

Changelog

Source

[0.3.0] - 2020-01-13

Changed

  • variableName supports dot separated notation
  • Upgrade to joi 17
  • Maintenance updates

Readme

Source

@valtech-commerce/joi

npm npm dependencies npms Travis CI

joi extensions + extra goodies

Install

$ npm install @valtech-commerce/joi

Usage

import { Joi, validateArgument } from '@valtech-commerce/joi';

class MyClass () {

	constructor(path, value) {
		validateArgument('path',  path,  Joi.absolutePath().required());
		validateArgument('value', value, Joi.number().required());

		// Do your stuff
	}

}

Extensions

absolutePath

Validate that the value is an absolute *nix or Windows path.

joiSchema

Validate that the value is a joi schema.

kebabCase

Validate that the value is kebab-case.

variableName

Validate that the value is a JavaScript valid variable name via is-var-name.

Documentation

View documentation



License

MIT © Valtech Canada inc.

Keywords

FAQs

Last updated on 07 Feb 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc