{"_id":"@benzn/config.any","name":"@benzn/config.any","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.3":{"name":"@benzn/config.any","version":"1.0.3","description":"Make ur `Config` in **multiple file** with `json`, `yaml`, `toml` and *More* **All at Once** and **Hot Reload** on **Change**","main":"index.js","type":"module","scripts":{"start":"node index.js","watch":"node index.js -w","start:verbose":"node index.js -l","watch:verbose":"node index.js -wl","start:no-err":"node index.js --no-err","watch:no-err":"node index.js --no-err"},"dependencies":{"@iarna/toml":"^2.2.5","yaml":"^2.7.0"},"keywords":["starship","spaceship","oh-mu-posh","oh-mu-zsh","config","shell","powershell","zshell","zsh","bash","yaml","yml","jsonc","json","toml"],"maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"publishConfig":{"access":"public"},"repository":{"type":"git","directory":"mucho","url":"git+https://github.com/benzaria/any-config.git"},"author":{"name":"benzaria"},"license":"MIT","_id":"@benzn/config.any@1.0.3","gitHead":"bbe2f00ecd7815aa73589ec3abaccdbf0aa5ff7d","bugs":{"url":"https://github.com/benzaria/any-config/issues"},"homepage":"https://github.com/benzaria/any-config#readme","_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-00RLrObRzUo7le/YL/wnzKhkQOVvpZTFkvOF5Ibr6tBWlNExscUstrrQfwdFQo3tAtRrux4nFzLTHPcwoa4Lxg==","shasum":"de5b63a3f1b03b9aa2fe674f08b46c1e0cb9e896","tarball":"https://registry.npmjs.org/@benzn/config.any/-/config.any-1.0.3.tgz","fileCount":4,"unpackedSize":10181,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFhWgQU7s7hcjsbnwDlyYJr79v2GmOtyMDTuVWR+kxZsAiBoPG7FN5xzmmlcsJxBpRdkM59EJzVPKIOOJ+t3DsbqHw=="}]},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/config.any_1.0.3_1739897197042_0.7993514155104855"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-18T16:46:36.931Z","1.0.3":"2025-02-18T16:46:37.278Z","modified":"2025-02-18T16:46:37.522Z"},"maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"description":"Make ur `Config` in **multiple file** with `json`, `yaml`, `toml` and *More* **All at Once** and **Hot Reload** on **Change**","homepage":"https://github.com/benzaria/any-config#readme","keywords":["starship","spaceship","oh-mu-posh","oh-mu-zsh","config","shell","powershell","zshell","zsh","bash","yaml","yml","jsonc","json","toml"],"repository":{"type":"git","directory":"mucho","url":"git+https://github.com/benzaria/any-config.git"},"author":{"name":"benzaria"},"bugs":{"url":"https://github.com/benzaria/any-config/issues"},"license":"MIT","readme":"\r\n# Startship-Config\r\n\r\n Make ur Startship `Config` in **multiple file** with `json`, `yaml` and `toml` **All at Once** and **Hot Reload** on **Change**.\r\n\r\n## Example\r\n\r\n> [!IMPORTANT]\r\n> make sure to start the file name that containe the global props with a ` . ` like `.main.toml`,\r\n> so it will load first and note mess up the configuration.\r\n\r\n`.main.toml`\r\n```toml\r\n\"$schema\" = 'https://starship.rs/config-schema.json'\r\n\r\nformat = \"\"\"\r\n${env_var.CSI}1F\\\r\n${env_var.CSI}$character╭─$os$username$directory${env_var.nim}[$package${custom.node}${custom.pnpm}${custom.npm}]()\r\n${env_var.CSI}$character╰  \\\r\n${env_var.CSI}0m\"\"\"\r\n\r\nadd_newline = true\r\ncontinuation_prompt = \"[|](bright-black) \"\r\n\r\nfill = { symbol = \" \" }\r\n```\r\n\r\n`file-1.json`\r\n```json\r\n{\r\n    \"$schema\" : \"https://starship.rs/config-schema.json\",\r\n\r\n    \"env_var\": {\r\n        \"CSI\": {\r\n            \"variable\": \"CSI\",\r\n            \"format\": \"$env_value\",\r\n            \"disabled\": false\r\n        },\r\n        \"nim\": {\r\n            \"variable\": \"nim_ver\",\r\n            \"format\": \"with [$symbol$env_value]($style) \",\r\n            \"style\": \"bright-cyan bold\",\r\n            \"symbol\": \" \",\r\n            \"disabled\": true\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n`file-2.yml`\r\n```yaml\r\n# yaml-language-server: $schema=../schema.json\r\n\r\naws:\r\n  disabled: false\r\n  expiration_symbol: X\r\n  force_display: false\r\n  format: on [$symbol($profile )(\\($region\\) )(\\[$duration\\] )]($style)\r\n  style: bold yellow\r\nos:\r\n  format: \"[$symbol]($style)\"\r\n  style: \"bold bright-Blue\"\r\n  disabled: false\r\n  symbols:\r\n    Windows: \" \"\r\n    Kali: \"  \"\r\n\r\n```\r\n---\r\n\r\noutput: `starship.toml`\r\n```toml\r\n\"$schema\" = 'https://starship.rs/config-schema.json'\r\n# From: .frontend.toml\r\nformat = \"\"\"\r\n$fill[[${custom.get-clock-time}](bright-blue bold bg:237)[${custom.git-branch}](bright-blue bold bg:237)${custom.is-git}\\r\r\n${env_var.CSI}1F${env_var.CSI}100000C${env_var.CSI}2D[${custom.git-url}](#181717 bg:237)${env_var.CSI}10C](fg:237)\\r\r\n${env_var.CSI}1F${env_var.CSI}$character╭─$os$username$directory${env_var.nim}[$package${custom.node}${custom.pnpm}${custom.npm}]()\\r\r\n${env_var.CSI}$character╰  ${env_var.CSI}0m\"\"\"\r\nadd_newline = true\r\ncontinuation_prompt = \"[|](bright-black) \"\r\n\r\n[fill]\r\nsymbol = \" \"\r\n\r\n# From: env_var.json\r\n[env_var.CSI]\r\nvariable = \"CSI\"\r\nformat = \"$env_value\"\r\ndisabled = false\r\n\r\n[env_var.nim]\r\nvariable = \"nim_ver\"\r\nformat = \"with [$symbol$env_value]($style) \"\r\nstyle = \"bright-cyan bold\"\r\nsymbol = \" \"\r\ndisabled = true\r\n\r\n\r\n# From: example.yaml\r\n[aws]\r\ndisabled = false\r\nexpiration_symbol = \"X\"\r\nforce_display = false\r\nformat = \"on [$symbol($profile )(\\\\($region\\\\) )(\\\\[$duration\\\\] )]($style)\"\r\nstyle = \"bold yellow\"\r\n\r\n[os]\r\nformat = \"[$symbol]($style)\"\r\nstyle = \"bold bright-Blue\"\r\ndisabled = false\r\n\r\n  [os.symbols]\r\n  Windows = \" \"\r\n  Kali = \"  \"\r\n\r\n\r\n```\r\n","readmeFilename":"README.md"}