vnopts: 验证和规范化选项
安装:使用 npm install --save vnopts 或 yarn add vnopts。用法示例: const vnopts = require('vnopts'); const schemas = [ vnopts.ChoiceSchema.create({ name: 'parser', choices: ['babylon', 'flow', 'typescript'], }), vnopts.BooleanSchema.create({ name: 'useFlowParser', deprecated: true, redirect: value => !value ? un
103.55KB
文件大小:
评论区