# line-node

> LINE SDK for TypeScript

Latest version **2.0.4** (published 2026-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install line-node
pnpm add line-node
yarn add line-node
bun add line-node
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2026-09-30 |
| First published | 2020-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=18 |
| Dependencies | 2 |
| Unpacked size | 18.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Luca Ban - Mesqueeb (https://cycraft.co) |
| Maintainers | mesqueeb |
| Keywords | line, node, nodejs, line-sdk |

## Links

- npm: https://www.npmjs.com/package/line-node
- Repository: https://github.com/mesqueeb/line-node
- Homepage: https://github.com/mesqueeb/line-node#readme
- Issues: https://github.com/mesqueeb/line-node/issues
- Funding: https://github.com/sponsors/mesqueeb
- npm.io page: https://npm.io/package/line-node

## Dependencies (2)

- [got](https://npm.io/package/got.md) ^16.0.0
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^9.0.3

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 2.0.4 (latest) — 2026-09-30
- 2.0.3 — 2026-09-26
- 2.0.2 — 2026-09-26
- 2.0.1 — 2025-02-19
- 2.0.0 — 2024-06-05
- 1.0.4 — 2023-05-23
- 1.0.3 — 2023-05-07
- 1.0.2 — 2022-01-26
- 1.0.1 — 2022-01-26
- 1.0.0 — 2022-01-25
- 0.0.5 — 2022-01-25
- 0.0.3 — 2020-11-05
- 0.0.2 — 2020-07-18
- 0.0.1 — 2020-07-18
- 0.0.0 — 2020-07-18

## README

# LINE NODE

```
npm i line-node
```

LINE NodeJS SDK.

## NodeJS helper functions for LINE

> Please note that the Node only helpers cannot be used in a browser environment!

Node helpers use [GOT](https://github.com/sindresorhus/got) as dependency to make requests.

Functions:

- [issueAccessToken](https://github.com/mesqueeb/line-ts/blob/production/src/libNode/issueAccessToken.ts)

<!-- prettier-ignore-start -->
```js
import { issueAccessToken } from 'line-ts'

const payload = { code, redirect_uri, client_id, client_secret }
const result = await issueAccessToken(payload)

// result looks like:
{ access_token, expires_in, id_token, refresh_token, scope, token_type }
```
<!-- prettier-ignore-end -->

- [decodeIdToken](https://github.com/mesqueeb/line-ts/blob/production/src/libNode/decodeIdToken.ts)

<!-- prettier-ignore-start -->
```js
import { decodeIdToken } from 'line-ts'

const payload = `line.id.token`
const result = await decodeIdToken(payload)

// result looks like:
{ header, payload, signature }
// you can retrieve information from the payload:
//   sub is the user id
{ sub, name, picture, email } = payload
```
<!-- prettier-ignore-end -->

For more information, click on the function links where you can see further documentation & types.

## TypeScript helper functions for LINE

Check [line-ts](https://github.com/mesqueeb/line-ts) for TypeScript helper functions including:

- getLineLoginUrl
- getParamsFromLoginCallback

---
_Source: https://npm.io/package/line-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
