New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ota_zip_get_info

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ota_zip_get_info

```javascript import logo from './logo.svg'; import './App.css'; import {OtaZipGetInfo} from "ota_zip_get_info"

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
0
Weekly downloads
 
Created
Source
import logo from './logo.svg';
import './App.css';
import {OtaZipGetInfo} from "ota_zip_get_info"

OtaZipGetInfo.regist("CLIENT","resources/extReouse/version.txt")

OtaZipGetInfo.regist("SERVER","package.json", content => JSON.parse(content).version, (zip)=>{
    // 默认就判断 获取版本文件是否存在。这个函数没必要不用重写
    if(!OtaZipGetInfo.isZip(zip)) {
        return false;
    }
    return zip.file("plugin/camera/run_face.bat");
})

OtaZipGetInfo.format = r => r

function App() {
    return (
        <div className="App">
            <input type='file' onChange={async (e)=>{
                let file = e.target.files[0];
                const res = await OtaZipGetInfo.getInfo(file)
                console.log(res)
            }}></input>
        </div>
    );
}

export default App;


FAQs

Package last updated on 25 Jul 2024

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