lan-bookmark
v1.1.1
Published
a web bookmark manager by cli
Readme
以女友名字(岚)命名的一个简单的网页书签管理器 a simple web bookmark manager
1.安装 install
npm install -g xie-bookmark2.添加书签 add bookmark
# 添加一个书签,会自动获取网页的标题 add a bookmark, will get the title of the web page automatically
lan add https://www.zhihu.com
# 添加一个书签,并指定标题 add a bookmark, and specify the title
lan add https://www.zhihu.com zhihu3.搜索书签 view bookmark
# 查看所有书签 view all bookmarks
lan
# 搜索书签 search bookmarks
lan search zhihu
# 当不存在任何匹配命令的时候也会被当作查寻指令 when there is no matching command, it will also be treated as a search command
lan zhihu4.重命名书签 rename bookmark
# 重命名书签 rename bookmark
lan rename 1 zhihu_new 5.删除书签 remove bookmark
# 删除书签 remove bookmark
lan remove 1
# 删除书签,无需确认 remove bookmark, no need to confirm
lan remove 1 -f
# 删除所有书签 remove all bookmarks
lan empty
# 删除所有书签,无需确认 remove all bookmarks, no need to confirm
lan empty -f6.统计书签数量 count the number of bookmarks
lan count7.根据url获取书签内容 get bookmark content by url
# 查看指定url的书签,所以你也可以通过这个功能来保存一些非web的东西 view the bookmark of the specified url, so you can also use this feature to save some non-web things
lan add http://www.google.com 'google'
lan get http://www.google.com利用这个特性,你可以把岚当作一个简单的基于命令行的参数存储工具 With this feature, you can use lan as a simple command line based parameter storage tool
lan add my_token '123456'
lan get my_token8.导出书签 export bookmark
# 导出书签 export bookmark
lan export
# 导出书签到指定文件 export bookmark to specified file
lan export bookmark.txt9.导入书签 import bookmark
# 导入书签 import bookmark
lan import --data <data>
# 导入书签,无需确认 import bookmark, no need to confirm
lan import --data <data> -f
# 从指定文件导入书签 import bookmark from specified file
lan import --file bookmark.txt
# 从指定的网络地址导入书签 import bookmark from specified url
lan import --url https://raw.githubusercontent.com/xieyezi/xie-bookmark/master/bookmark.txt10.合并书签 merge bookmark
# 合并书签 merge bookmark
lan merge --data <data>
# 合并书签,无需确认 merge bookmark, no need to confirm
lan merge --data <data> -f
# 从指定文件合并书签 merge bookmark from specified file
lan merge --file bookmark.txt
# 从指定的网络地址合并书签 merge bookmark from specified url
lan merge --url https://raw.githubusercontent.com/xieyezi/xie-bookmark/master/bookmark.txt11.重建索引 rebuild index
# 重建索引 rebuild index
lan reloadtodo list:
- --pass 对书签进行导出加密
- 导出到url
