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

mip-extension-validator

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mip-extension-validator

mip组件校验工具

  • 1.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
68
increased by1260%
Maintainers
4
Weekly downloads
 
Created
Source

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);  // 警告列表
});

Keywords

FAQs

Package last updated on 25 Aug 2017

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