npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

kindle-zhcn-clippings-to-json

v1.1.1

Published

Convert zh-cn Kindle MyClippings.txt into a JSON object.

Downloads

9

Readme

适用于简体中文的 Kindle MyClippings.txt 解析器

本模块解析简体中文 Kindle 电子书批注时生成的 MyClippings.txt,转换为 JavaScript 对象。

一个典型的简体中文 MyClippings.txt 如下:

平凡的世界 (路遥)
- 您在第 280 页(位置 #4283-4286)的标注 | 添加于 2023年5月19日星期五 下午1:11:48

勿容置疑,她是一个普普通通的人,她的思想、气质、感情,优点和缺点,都是属于普通人的。但普通人和出类拔萃的人一样,也有自己的欢乐和痛苦,只不过不为大多数人了解罢了。人们宁愿去关心一个蹩脚电影演员的吃喝拉撒和鸡毛蒜皮,而不愿了解一个普通人波涛汹涌的内心世界……
==========
邓小平时代 (傅高义)
- 您在位置 #388-390的标注 | 添加于 2023年7月4日星期二 下午6:18:24

当会谈结束后他们起身走向门口时,邓小平向麦理浩做了个手势,身高逾一米八的港督俯下身,听到这位身材只有一米五几的主人对他说:“你如果觉得统治香港不容易,那就来统治中国试试。”
==========
人类群星闪耀时 (斯蒂芬·茨威格)
- 您在第 172 页(位置 #2633-2637)的标注 | 添加于 2023年7月13日星期四 上午12:09:04

伟大的对决中,英雄虽死犹生,失败中的意志崛起,直抵无限高峰。因为偶然的成功和轻易的胜利只能点燃人的虚荣之心,却不能获得一个人在与不可战胜的强大命运的搏击中,因为覆灭而升华的高尚心灵。这类一切时代,一切悲剧中最伟大的杰作,时常刻画于诗人笔下又千百次地在生活中诞生。 
==========

返回的对象包含 title、author、type(Highlight、Bookmark 或 Note)、page、start、end、time、text。

Usage

import { toObject } from 'kindle-zhcn-clippings-to-json';
console.log(JSON.stringify(toObject(MyClippings)));

Credit