learn-vm-scripts frontend repo
Installation
Clone the repository:
git clone https://github.com/your-repo/puppeteer-cli-login.git
cd puppeteer-cli-login
Use corret Node version
nvm use
Install dependencies
yarn install
Usage
This project contains a program that logs in to a cloud provider using Puppeteer.
To build:
yarn build
To start the file watcher:
yarn cli -- --inputFilePath <path-to-input-file> --outputFilePath <path-to-output-file> --executablePath <path-to-chromium-executable> --userDataDir <path-to-user-data-dir>
The program watches the input file for changes.
To log in to a cloud provider, write the following JSON object to the input file:
{ "url": "<url-to-login-page>", "username": "<your-username>", "password": "<your-password>", "cloudProvider": "<cloud-provider>"}
❗️The input has to be written to a single line.
When the login process is complete, the program writes a line to the output file.
After this, the program exits.
关于 @datacamp/learn-vm-scripts 的常见问题@datacamp/learn-vm-scripts 是什么? Scripts used by VMs in learn.
如何安装 @datacamp/learn-vm-scripts? 在项目目录运行 npm install @datacamp/learn-vm-scripts,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 vm-scripts,可以用 npx vm-scripts 直接运行。
@datacamp/learn-vm-scripts 支持 TypeScript 吗? 该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/datacamp__learn-vm-scripts 是否存在。
@datacamp/learn-vm-scripts 支持 ESM 还是 CommonJS? 同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。
@datacamp/learn-vm-scripts 可以商用吗? @datacamp/learn-vm-scripts 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。
@datacamp/learn-vm-scripts 的下载量有多少? 根据 npm 官方下载统计,@datacamp/learn-vm-scripts 在 2026/10/12 – 2026/11/10 这 30 天内被下载 26,903 次,日均约 897 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。
@datacamp/learn-vm-scripts 还在维护吗? 最新版本 1.14.6 发布于 2026/11/10(1 天前);至今共发布 94 个版本,其中过去 12 个月发布了 22 个;首次发布于 2024/07/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。