
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
vcloud-node-sdk
Advanced tools
Node-SDK是用于服务器端点播上传的软件开发工具包,提供简单、便捷的方法,方便用户开发上传视频或图片文件的功能。
npm i vcloud-node-sdk --save
安装依赖包。let uploadSdk = require('vcloud-node-sdk');
接入视频云点播,需要拥有一对有效的 AppKey 和 AppSecret 进行签名认证,可通过如下步骤获得:
在获取到 AppKey 和 AppSecret 之后,可按照如下方式进行初始化:
uploadSdk.init({
appKey: '[App Key]',
appSecret: '[App Secret]',
trunkSize: 4 * 1024 * 1024,
logLevel: 'INFO'
});
配置项说明:
调用upload接口,传入文件路径即可完成文件上传,路径支持相对路径(相对于index.js文件)或绝对路径(推荐)。
示例:
uploadSdk.upload('E:/Hello.mp4');
upload接口同时支持断点续传,只需传入同一文件的路径再次调用upload接口即可,SDK会自动查询断点并进行续传。
示例:
uploadSdk.upload('E:/Hello.mp4');
v1.0.3
FAQs
SDK with Node.js for VCloud163
The npm package vcloud-node-sdk receives a total of 0 weekly downloads. As such, vcloud-node-sdk popularity was classified as not popular.
We found that vcloud-node-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.