Commit Graph

8 Commits

Author SHA1 Message Date
David Ibia af471c9821 Prepare 0.1.0: one dotenv grammar, path policy, redactor, and safer writes
- parseDotenv, validate, and every edit share the round-trip document parser
- Path policy helpers (isEnvFile, isSensitiveEnvFile, isEnvSitterPepperFile) used by envsitter-guard
- CLI file commands run through the library file operations
- EnvSitter#redactor() and the redact command replace secret-looking values in text
- Writes keep file permissions and go through symlinks; new files are 0600
- An existing pepper is never replaced; a new .envsitter/ gets a .gitignore
- set/add/copy into empty files write clean output
- Regexes with g/y flags no longer skip keys
- TypeScript 6, Node 22+ engines, prepack build, dist/test excluded from the package
2026-10-20 15:10:13 +01:00
David Ibia a64cc5cdf6 Add key mutation commands (add, set, unset, delete) for v0.0.4
- Add CLI commands: add, set, unset, delete for modifying .env files
- Add value auto-quoting for special characters (spaces, #, quotes, newlines)
- Add example file detection with warning for .env.example/.sample/.template
- Add library API: addEnvFileKey, setEnvFileKey, unsetEnvFileKey, deleteEnvFileKeys
- Export isExampleEnvFile utility
- Add tests for new mutation operations
- Update README and CHANGELOG
2026-01-15 21:29:06 +01:00
David Ibia d9d3a41b0f Add repository metadata 2026-01-13 19:44:33 +01:00
David Ibia 46c7a34355 Add dotenv file operations 2026-01-13 18:20:37 +01:00
David Ibia f8538c8bca Bump version to 0.0.2 2026-01-12 18:18:46 +01:00
David Ibia a1c53aeb5e Run tests in pre-commit 2026-01-12 13:45:44 +01:00
David Ibia 40dbd4432f Prepare npm publish with README and MIT license 2026-01-12 10:46:12 +01:00
David Ibia 3993746843 Initial envsitter CLI and safe env matching 2026-01-12 10:30:49 +01:00