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

tiddlywiki-markdown-importer-exporter-cli

v2.0.0

Published

tiddlywiki-markdown-importer-exporter-cli

Downloads

36

Readme

tiddlywiki-markdown-importer-cli

[!WARNING] 目前针对简单情况的markdown可以一键批量导入到tiddlywki, 但是真实情况下, 每个用户的情况都不同, 需要进行不同程度的支持, 和错误处理(暂时没有相关反馈, 无法更近一步处理 见 issue1)

  • 导入导出都是对于tiddlywiki(tw)而言的, 或者说主体都是markdown(md).
  • 导入: 从本地markdownd(md)导入到tiddlywiki, 即markdown的导入 (md -> tw)
  • 导出: 从tiddlywiki 导出到本地markdown, 即markdown的导出 (tw -> md)

Feature

  • 导入的文件使用原markdown文件创建/修改时间, 不会导致时间线乱掉
  • 支持markdown的导入,导出
  • ...

Usage

npm i -g tiddlywiki-markdown-importer-exporter-cli
twmd -h
twmd -i .
twmd -i /your/markdonw/folder

TODO

  • [x] url test ping
  • [x] 写入文件的创建,修改时间
  • [x] suport import markdown file
  • [x] suport export markdown file(tiddlywiki 插件版本: markdown obsidian manager)
  • [x] ncc 打包成cli
  • [x] 支持参数, 配置文件读取
  • [x] release npm package
  • [x] supoprt parse yml
  • [x] 默认读取当前目录下的 content 目录
  • [x] 如何本地测试npm package link?
  • [ ] exporter suppor cli
  • [ ] 名字错乱(支持导入md&&md.meta)
  • [ ] yml 异常语法校验, 异常捕获
  • [ ] windows 下路径有问题
  • [ ] 相对路径的图片路径处理
  • [ ] support markdown exporter (tiddlywiki 插件版本: markdow exporter)
  • [ ] cli 自动发包
  • [ ] axios 打包200k
  • [ ] 重构代码
  • [ ] etag ??
  • [ ] 支持验证
  • [ ] support wikitext to markdown: 如果用户使用到了macro等高级tw语法, 这一步不可能也不能做到, tid 的meta信息可以借助gray-matter 来处理
  • [ ] 接入三方api(notion)
  • [ ] 浏览器扩展

NOTE

  • 文件使用LF, 否则打包的时候, 第一行的shebang会和代码混在一起(for developers)
  • notion 导出的markdown, 不遵循 YML 语法

Links

// TODO: 验证是否需要密码 // TODO: 是否验证成功 // https://bramchen.github.io/tw5-docs/zh-Hans/#WebServer%20API%3A%20Get%20Server%20Status // headers.append('Authorization', 'Basic ' + btoa(user + ':' + password));

// https://bramchen.github.io/tw5-docs/zh-Hans/#ListenCommand // https://github.com/Jermolene/TiddlyWiki5/pull/7471 // https://talk.tiddlywiki.org/t/question-how-to-render-json-instead-of-html-and-save-the-results-to-a-json-file/4910/15

# title


Tag: xxx
Last update: xxx

# 正文部分

xxx