Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jdfed/ajv

Package Overview
Dependencies
Maintainers
5
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jdfed/ajv

drip ajv核心包

  • 0.8.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
69
increased by165.38%
Maintainers
5
Weekly downloads
 
Created
Source

@drip/ajv

Drip生态下的统一AJV校验包,支持node和浏览器环境。

可用方法

registerAjv

注册ajv

loadAjvPlugins

导入ajv自定义插件

目前官方已内置了两个通用包 @jdfed/drip-form-plugin-formats 和 @jdfed/drip-form-plugin-keywords

如何使用

node

const dripAjv = require('@drip/ajv')
const ajv = dripAjv.registerAjv()

//加载外部ajv插件,第二个参数支持传入自定义的ajv插件包
loadAjvPlugins(ajv, [])

浏览器

import dripAjv from '@drip/ajv'
const { registerAjv, loadAjvPlugins } = dripAjv

const ajv = dripAjv.registerAjv()

//加载外部ajv插件,第二个参数支持传入自定义的ajv插件包
loadAjvPlugins(ajv, [])

Keywords

FAQs

Package last updated on 15 Jul 2022

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