https://github.com/kennytian/find-number-position
https://github.com/kennytian/find-number-position
eslint nodejs prettier rollup terser typescript
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kennytian/find-number-position
- Owner: Kennytian
- Created: 2024-07-22T12:02:08.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-07-24T02:46:10.000Z (10 months ago)
- Last Synced: 2024-11-22T16:07:36.527Z (6 months ago)
- Topics: eslint, nodejs, prettier, rollup, terser, typescript
- Language: TypeScript
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 找某个数字的位置
## 系统环境
- Windows 7+, macOS, Linux 操作系统不限
- Node.js 16+
- PNPM 6+## 安装依赖
```bash
pnpm install
```
> 注意:如果没有 pnpm,请先全局安装 `npm i -g pnpm`## 编译并压缩混淆代码
```bash
pnpm run build
```## 运行程序
```bash
# 生成测试文件
pnpm run generate-test-file
``````bash
# 找到 242 的位置
pnpm run find-number-position 242
```## 单元测试
```bash
pnpm run test
```## 代码规范
```bash
pnpm run lint
```