@set-config/core
v0.3.0
Published
CLI engine for set-config - adapter loader and CLI framework
Downloads
2,694
Readme
@set-config/core
CLI engine for set-config - set/get/delete JSON values.
This is the engine package. For full functionality, use @set-config/cli which includes all adapters.
Quick Start
# Set a value
npx @set-config/cli set config.json database.host localhost
# Get a value
npx @set-config/cli get config.json database.host
# List keys
npx @set-config/cli list config.json databaseAdapters
| Format | Package | Install |
|--------|---------|---------|
| JSON | built-in | - |
| YAML | @set-config/yaml | npx @set-config/yaml |
| TOML | @set-config/toml | npx @set-config/toml |
| ENV | @set-config/dotenv | npx @set-config/dotenv |
| Markdown | @set-config/markdown | npx @set-config/markdown |
For YAML support:
npx @set-config/yaml set config.yaml server.port 8080For TOML support:
npx @set-config/toml set config.toml database.pool 10For ENV support:
npx @set-config/dotenv set .env API_KEY sk-xxxFor Markdown support:
npx @set-config/markdown set doc.md 'Guide.Install' 'Install steps...'Full CLI with all formats
npx @set-config/cli set config.json a.b.c 123
npx @set-config/cli set config.yaml server.port 8080
npx @set-config/cli set config.toml database.pool 10License
MIT
