New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

qline

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qline

英中词典:支持查单词 背单词 .使用命令行调用

latest
Source
npmnpm
Version
1.0.22
Version published
Weekly downloads
21
425%
Maintainers
1
Weekly downloads
 
Created
Source

1 简介:

1.1 功能介绍

这是通过命令行查询单词 ,记录生词本 的简单工具。

1.2 安装

1.2.1 安装nodejs npm

nodejs 下载安装方法

1.2.2 安装qline

 # 由于qline文件比较大,首次安装可能会比较慢, 最新版本在mirror站点未必有更新
 # 可以先设置npm registry 为官方站点, 再安装最新版本
 npm config set registry https://registry.npmjs.org/
 npm i -g qline@latest

1.2.3 如果安装下载有问题,建议如此处理

  • 原因,因为qline 依赖的cdict_query 模块 比较大,首次安装可能会比较慢, 最新版本在mirror站点未必有更新
  • 有些人的本地设置了proxy,导致下载失败,可以自行下面脚本来下载
npm config set registry https://registry.npmjs.org/
unset https_proxy
unset http_proxy
unset all_proxyq
unset HTTPS_PROXY
unset HTTP_PROXY
unset ALL_PROXY
npm i -g qline@latest

2 功能

2.1 查询

2.1.1 查询单词

# 查询单词   qline q <word>

$ qline q ownership

【ownership】 'әunәʃip
释义:
  1. n. 所有权, 物主身份
[经] 所有权, 所有制
词频:BNC 2672 | FRQ 3585
变形:s:ownerships
标签:高考,大学英语四级,大学英语六级,考研,雅思

2.1.2 查询词组 短语

$ qline q 'work around'
【work around】
释义:
  1. [网络] 绕过;来绕开;绕个弯解决

2.2 记录生词

# 不输入参数的时候,记录上次查询的单词
$ qline s
 
$ qline s ownership

2.3 查看生词列表

$ qline list

2.4 回忆生词

  • 随机从生词本中抽取一个单词

$ qline r

📖 请回忆单词:ownership
按回车查看释义...

2.5 删除生词

qline d ownership

2.6 练习记单词

# 尝试记忆考研的单词, 缺省抽取10个考研单词,测试
$ qline t -tag ky

# 随机抽取20个cet4词汇反复练习
qline t -tag cet4 -c 20
// 随机抽取30个维克多3500词汇反复练习
qline t -tag vk -c 30

3 开发调试

3.1 下载代码

git clone git@github.com:nextuser/qline.git
cd qline
npm install

3.2 执行代码

$ node  bin/index.js q china
[dotenv@17.2.3] injecting env (0) from .env -- tip: 🛠️  run anywhere with `dotenvx run -- yourcommand`

【China】 'tʃainә
释义:
  1. n. 中国, 瓷器
a. 中国的
词频:BNC 1973 | FRQ 7946
变形:s:chinas
标签:中考,高考

4. 使用示例:

    # 查询单词
    qline q ownership
    # 查询词组
    qline q  'work around'
    # 记录最新查询的单词或词组到生词本
    qline s
    # 记录指定单词到生词本
    qline s ownership
    # 查看10个生词列表
    qline l
    # 查看20个生词列表
    qline l 20
    # 随机回顾生词本中单词
    qline r
    # 清空生词本
    qline c

    # 随机抽取20个考研词汇反复练习
    qline t -tag ky -c 20
    # 随机抽取20个cet4词汇反复练习
    qline t -tag cet4 -c 20
    # 随机抽取10个托福词汇反复练习
    qlin t -tag toefl
    
    

Keywords

dict

FAQs

Package last updated on 09 Feb 2026

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