@kokiito0926/fmeditor
v0.0.3
Published
フロントマターを編集することができるコマンドラインのツールです。
Maintainers
Readme
fmeditor
fmeditorは、フロントマターを編集することができるコマンドラインのツールです。
マークダウンを標準入力から受け取り、コマンドライン引数に従って、フロントマターを編集します。
インストール
$ npm install --global @kokiito0926/fmeditor使用方法
curlなどで取得したマークダウンをパイプでfmeditorに流し込みます。
そうすると、コマンドライン引数の値がセットされたフロントマターとともにマークダウンが出力されます。
$ curl -fsSL https://raw.githubusercontent.com/Kernix13/markdown-cheatsheet/refs/heads/master/frontmatter.md | fmeditor get --title --tags --draft$ curl -fsSL https://raw.githubusercontent.com/Kernix13/markdown-cheatsheet/refs/heads/master/frontmatter.md | fmeditor set --tags '["markdown", "frontmatter", "yaml"]'$ curl -fsSL https://raw.githubusercontent.com/Kernix13/markdown-cheatsheet/refs/heads/master/frontmatter.md | fmeditor remove --title --tags