LINE で出力したトーク履歴ファイルを JSON にパースするモジュール
import { parse, TalkData } from "https://deno.land/x/line2json@v0.1.0/mod.ts";
const text = Deno.readTextFileSync("talk_histroy.txt");
const histories: TalkData[] = parse(text);
console.log(histories);
import { toJson } from "https://deno.land/x/line2json@v0.1.0/mod.ts";
const text = Deno.readTextFileSync("talk_histroy.txt");
const json = toJson(text);
Deno.writeTextFileSync("histroy.json", json);
- Windows / Mac 版 LINE v7.2.0
- Android 版 LINE v11.17.1
- LINE のシステムメッセージや URL、LINE 依存の絵文字を含むメッセージは除外されます
- 時刻は全て 24 時間表記です