mdenc 0.1.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -11
- package/dist/cli.js +1007 -372
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +144 -126
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.js +144 -126
- package/dist/index.js.map +1 -1
- package/package.json +10 -9
- package/dist/chunk-DQSJGHST.js +0 -688
- package/dist/chunk-DQSJGHST.js.map +0 -1
- package/dist/hooks-7DUHI6MG.js +0 -16
- package/dist/hooks-7DUHI6MG.js.map +0 -1
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
**Encrypt your Markdown. Keep your diffs.**
|
|
4
4
|
|
|
5
|
+
[**Live Demo**](https://yogh-io.github.io/mdenc/) | [npm](https://www.npmjs.com/package/mdenc) | [Specification](SPECIFICATION.md) | [Security](SECURITY.md)
|
|
6
|
+
|
|
5
7
|
mdenc lets you store encrypted Markdown in git without losing the ability to see *what changed*. Edit one paragraph, and only that paragraph changes in the encrypted output. Your `git log` stays useful. Your pull request reviews stay sane.
|
|
6
8
|
|
|
7
9
|
## What it looks like
|
|
@@ -92,29 +94,26 @@ Password is read from `MDENC_PASSWORD` env var or prompted interactively (no ech
|
|
|
92
94
|
|
|
93
95
|
## Git Integration
|
|
94
96
|
|
|
95
|
-
mdenc
|
|
97
|
+
mdenc uses git's native **smudge/clean filter** to transparently encrypt and decrypt `.md` files. You edit plaintext locally; git stores ciphertext in the repository.
|
|
96
98
|
|
|
97
99
|
```bash
|
|
98
|
-
# Set up git
|
|
100
|
+
# Set up git smudge/clean filter and textconv diff
|
|
99
101
|
mdenc init
|
|
100
102
|
|
|
101
103
|
# Generate a random password into .mdenc-password
|
|
102
|
-
mdenc genpass
|
|
104
|
+
mdenc genpass [--force]
|
|
103
105
|
|
|
104
|
-
# Mark a directory -- .md files inside will be
|
|
106
|
+
# Mark a directory -- .md files inside will be filtered
|
|
105
107
|
mdenc mark docs/private
|
|
106
108
|
|
|
107
|
-
# See which files
|
|
109
|
+
# See which files are configured for encryption
|
|
108
110
|
mdenc status
|
|
109
111
|
|
|
110
|
-
#
|
|
111
|
-
mdenc
|
|
112
|
-
|
|
113
|
-
# Remove mdenc hooks from the repository
|
|
114
|
-
mdenc remove-hooks
|
|
112
|
+
# Remove git filter configuration
|
|
113
|
+
mdenc remove-filter
|
|
115
114
|
```
|
|
116
115
|
|
|
117
|
-
After `mdenc init` and `mdenc mark`, the workflow is
|
|
116
|
+
After `mdenc init` and `mdenc mark`, the workflow is transparent: the **clean filter** encrypts `.md` files when they're staged (`git add`), and the **smudge filter** decrypts them on checkout. You always see plaintext in your working directory. The custom diff driver shows plaintext diffs of encrypted content.
|
|
118
117
|
|
|
119
118
|
## Library
|
|
120
119
|
|