Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mipengine/mip-extension-validator
MIP 组件校验工具
https://github.com/mipengine/mip-extension-validator
Last synced: about 1 month ago
JSON representation
MIP 组件校验工具
- Host: GitHub
- URL: https://github.com/mipengine/mip-extension-validator
- Owner: mipengine
- License: mit
- Created: 2016-11-18T09:38:36.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-14T07:09:41.000Z (over 7 years ago)
- Last Synced: 2024-10-31T22:02:30.421Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mip-extension-validator
mip组件校验工具## api
```
const validator = require('mip-extension-validator');// 校验一个目录
validator.validate(dirPath).then(function(result) {
console.log(result.status); // 状态码 0 成功, 1 失败
console.log(result.errors); // 错误列表
console.log(result.warns); // 警告列表
});// 校验一个zip包
validator.validateZip(zipPath).then(function(result) {
console.log(result.status); // 状态码 0 成功, 1 失败
console.log(result.errors); // 错误列表
console.log(result.warns); // 警告列表
});
```