@evex-dev/linejs

中文文档
3.6.5发布于 2026/11/13MITTypeScriptES Module构建来源已验证近 30 天下载 2546

LINE SelfBot library for Node.js

原始使用文档
文档目录9 节
  1. Installation
  2. For AI coding agents
  3. Migrating from v1
  4. Browser Support
  5. LINEJS Types
  6. Provided Packages
  7. Development
  8. Authors
  9. References

LINEJS

npm JSR JSR Score JSR Scope release workflow
技術者倫理 遵守済み

LINEJS LINEJS is a JavaScript library for creating a LINE SelfBot.
❓ Question: Join our Discord community
📚 Documentation: Check out the full documentation
🤖 AI Generated Documentation: DeepWiki - LINEJS

Installation

Supports Node.js (22.18+ or 24.11+), Bun, and Deno, with TypeScript types included.

npm install @evex-dev/linejs
pnpm add @evex-dev/linejs
yarn add @evex-dev/linejs
bun add @evex-dev/linejs

The library is also published to JSR as @evex/linejs for Deno and JSR users:

npx jsr add @evex/linejs
deno add jsr:@evex/linejs

For AI coding agents

Install LINEJS as a skill so Codex, Claude Code, and other coding agents know how to work with the library:

npx skills add evex-dev/linejs --skill linejs

You can git clone the latest development version and link it locally:

git clone https://github.com/evex-dev/linejs.git
cd linejs
pnpm install
pnpm run build
Documentation is https://linejs.evex.land

Migrating from v1

The v1 → v2 surface change is large enough that a step-by-step manual diff isn't worth maintaining. Install the agent skill (see Installation) and ask your coding agent to migrate the affected files — it will read the skill's roadmap, pull the current API shapes, and rewrite call sites against the live source.

Browser Support

For now, please use "https://esm.sh/@evex-dev/linejs".

Example is here.

LINEJS Types

Please see @evex-dev/linejs-types (JSR: @evex/linejs-types).
In short, TypeScript types and enums (such as ReactionType (0, 1, 2, 3), MessageType, etc.) are provided.

Provided Packages

  • client - (@evex-dev/linejs)
    • Client - LINE SelfBot Client
  • base - (@evex-dev/linejs/base)
    • BaseClient - LINE SelfBot API Client
  • call - (@evex-dev/linejs/call)
  • thrift - (@evex-dev/linejs/thrift)
    • Thrift - Thrift read/write
  • storage - (@evex-dev/linejs/storage)
    • BaseStorage - LINE Client Storage Type
    • MemoryStorage - LINE Client Memory Storage
    • FileStorage - LINE Client File Storage
  • cli - (@evex-dev/linejs-cli)
  • types - (@evex-dev/linejs-types)
    • All Types for LINE

Development

Requires Node.js 22.18+ (or 24.11+) and pnpm.

pnpm install
pnpm run build
pnpm run check
pnpm test

Authors

References

版本与发布记录

@evex-dev/linejs 共发布 7 个版本,首次发布于 2026/11/04;过去 12 个月发布了 7 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.6.5latest2026/11/13今天
3.6.42026/11/049 天前
3.6.32026/11/049 天前
3.6.22026/11/049 天前
3.6.12026/11/049 天前
3.6.02026/11/049 天前

关于 @evex-dev/linejs 的常见问题

@evex-dev/linejs 是什么?

LINE SelfBot library for Node.js

如何安装 @evex-dev/linejs?

在项目目录运行 npm install @evex-dev/linejs,或使用 pnpm add / yarn add / bun add。

@evex-dev/linejs 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@evex-dev/linejs 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@evex-dev/linejs 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js ^22.18.0 || ^24.11.0 || >=26.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@evex-dev/linejs 可以商用吗?

@evex-dev/linejs 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@evex-dev/linejs 的下载量有多少?

根据 npm 官方下载统计,@evex-dev/linejs 在 2026/10/14 – 2026/11/12 这 30 天内被下载 2,546 次,日均约 85 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@evex-dev/linejs 还在维护吗?

最新版本 3.6.5 发布于 2026/11/13(今天);至今共发布 7 个版本,其中过去 12 个月发布了 7 个;首次发布于 2026/11/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。