🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

lchl

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lchl - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+2
1.txt
13692551489
abc5234168
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [1.0.1](https://github.com/xjq7/lc-helper/compare/v1.0.0...v1.0.1) (2022-12-08)
## 1.0.0 (2022-12-08)
### Features
* 支持 cli 使用 ([d94d3e8](https://github.com/xjq7/lc-helper/commit/d94d3e8a7af560b9ff3fe9b9bc4a971c6838d680))
* demo version ([0d52b7c](https://github.com/xjq7/lc-helper/commit/0d52b7c2bf8a54bb2679ecd25c3f9a8277b3965a))
import schedule from './index';
const [account, password] = process.argv.slice(2);
schedule.setConfig({ account, password });
schedule.run();
+3
-2

@@ -1,2 +0,2 @@

name: runner
name: auto action runner
run-name: ${{ github.actor }} is running

@@ -6,2 +6,3 @@ on:

- cron: '10 0 * * *'
workflow_dispatch:

@@ -31,2 +32,2 @@ jobs:

- name: run
run: pnpm start ${{ secrets.ACCOUNT }} ${{ secrets.PASSWORD }}
run: pnpm dev ${{ secrets.ACCOUNT }} ${{ secrets.PASSWORD }}
+4
-3
{
"name": "lchl",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -8,4 +8,5 @@ "bin": "dist/.bin/cli.js",

"scripts": {
"start": "ts-node index.ts",
"compile": "tsc"
"dev": "ts-node test.ts",
"compile": "tsc",
"release": "standard-version"
},

@@ -12,0 +13,0 @@ "repository": {

+54
-15

@@ -19,20 +19,56 @@ ## 力扣辅助

## 安装
## 开发
### 环境安装
```sh
npm install -g lchl
# or
yarn add global lchl
# clone project
git clone https://github.com/xjq7/lc-helper
# cd folder
cd lc-helper
# 安装 pnpm, 已安装的话就跳过
npm install pnpm -g
# 依赖安装
pnpm install
```
### 本地调试
```sh
pnpm dev <account> <password>
```
### 命令行工具调试
```sh
# 编译
pnpm tsc
# link 到全局
npm link --force
# 运行
lchl start <account> <password>
```
## 使用
目前只支持账号密码登录
### 命令行工具使用
目前只支持账号密码登录
```sh
# 全局安装
npm install -g lchl
# or
yarn add global lchl
```js
# 运行
lchl start <account> <password>
// example
# example
lchl start 16618922034 123456

@@ -43,15 +79,18 @@ ```

通过 Github Action 每天凌晨 00:10 分自动执行, 需要提前配置账号密码在 Action Secret 中
通过 Github Action 每天凌晨 00:10 分自动执行, 需要提前配置账号密码在 Action Secret 中
1. fork 本项目
1. fork 本项目
2. 配置账号密码
2. 配置账号密码
创建 Github action Secret
创建 Github action Secret
进入你 fork 的项目, 找到 Settings - Security - Secrets - Actions
进入你 fork 的项目, 找到 Settings - Security - Secrets - Actions
然后 New repository secret
然后 New repository secret
填写一个 Name 为 ACCOUNT 的 key, Secret 为你的用户账号
填写一个 Name 为 PASSWORD 的 key, Secret 为你的用户密码
填写一个 Name 为 ACCOUNT 的 key, Secret 为你的账号
填写一个 Name 为 PASSWORD 的 key, Secret 为你的密码
在 Action 中手动触发验证