{"_id":"@atlaxt/to-public","_rev":"7-7c5396f15cc2c6c88487e0f29b8d719f","name":"@atlaxt/to-public","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"@atlaxt/to-public","version":"1.0.0","keywords":["package.json","meta","prebuild","cli","build-tool"],"author":{"name":"Atlas Yigit Aydin"},"license":"MIT","_id":"@atlaxt/to-public@1.0.0","maintainers":[{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"}],"homepage":"https://atlaxt.me/cli/tools/to-public","bugs":{"url":"https://github.com/atlaxt/to-public/issues"},"bin":{"atlaxt-to-public":"cli.js"},"dist":{"shasum":"648662ce1492d53bf9ae560d195301782b605d8b","tarball":"https://registry.npmjs.org/@atlaxt/to-public/-/to-public-1.0.0.tgz","fileCount":3,"integrity":"sha512-V4sMy/kRt3nHxnt6Vh2EI610zJsEnGs4IS+oqzJSab/jKPIHEXYosjGajJ+RWIAoVTSyIdjRQtXjVFuzQO5bmA==","signatures":[{"sig":"MEUCIQC5q0BesUR2cZyn5eo8J0uoxUZL2KCIpxtkdBj0NUBr9AIgOkVqEQClh2DD2BwP0kmfd9y3Xx7kRX5IYRWCKxDS2Nw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2507},"engines":{"node":">=14"},"gitHead":"d7796540cba32f00625ad0b84e65263d02871d4b","scripts":{"prebuild":"npx @atlaxt/to-public"},"_npmUser":{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"},"repository":{"url":"git+https://github.com/atlaxt/to-public.git","type":"git"},"_npmVersion":"11.5.2","description":"Reads package.json and writes a sanitised, public-safe meta.json to your public folder","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/to-public_1.0.0_1774883187389_0.4773730506700191","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@atlaxt/to-public","version":"1.1.0","keywords":["package.json","meta","prebuild","cli","build-tool"],"author":{"name":"Atlas Yigit Aydin"},"license":"MIT","_id":"@atlaxt/to-public@1.1.0","maintainers":[{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"}],"homepage":"https://atlaxt.me/cli/tools/to-public","bugs":{"url":"https://github.com/atlaxt/to-public/issues"},"bin":{"atlaxt-to-public":"cli.js"},"dist":{"shasum":"6d9ce3711df0406ee548bb863e4a490a5df714ed","tarball":"https://registry.npmjs.org/@atlaxt/to-public/-/to-public-1.1.0.tgz","fileCount":4,"integrity":"sha512-1vlWFfp8dJjmuM+Ue1K4xgAULnyKiospeCH8kRllgS6lu65LQjFqqMd86xK3P8BcWjwiNMJg+8RK/4+0Y01XcQ==","signatures":[{"sig":"MEYCIQCDlESyTSc/Lx0hKdHrkM4mL9cnexhaAeWOgINRoJtVHgIhAJdzk/mRpQ4f243dwgcU/baoM2Fa4ucE0F1b7zmRHrKK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14317},"engines":{"node":">=14"},"gitHead":"128f8b766ba122a616e171c325d5bf76eb6f82c8","scripts":{"prebuild":"npx @atlaxt/to-public"},"_npmUser":{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"},"repository":{"url":"git+https://github.com/atlaxt/to-public.git","type":"git"},"_npmVersion":"11.5.2","description":"Reads package.json and writes a sanitised, public-safe meta.json to your public folder","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/to-public_1.1.0_1774883549216_0.4006018471793542","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@atlaxt/to-public","version":"1.2.0","keywords":["package.json","meta","prebuild","cli","build-tool"],"author":{"name":"Atlas Yigit Aydin"},"license":"MIT","_id":"@atlaxt/to-public@1.2.0","maintainers":[{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"}],"homepage":"https://atlaxt.me/cli/tools/to-public","bugs":{"url":"https://github.com/atlaxt/to-public/issues"},"bin":{"to-public":"cli.js"},"dist":{"shasum":"452b67d6b0dd2065970d8709c8b6d7f749e04036","tarball":"https://registry.npmjs.org/@atlaxt/to-public/-/to-public-1.2.0.tgz","fileCount":4,"integrity":"sha512-p25kp0KxV3LFPKubUp9p2LRaRKteiNs0GXJoVNfWrLcnpHkr+5RCeVyigElJolwXu+j2guvJIPKlcyGOSFwMyg==","signatures":[{"sig":"MEUCIQCeRI0Y7G5B4RW3lnBOoybQvbMSaAOPfmi1OBis/FIO/AIgC9vTK9m1eO0YGO7CZF1H72fisuia6LoPzTA+4NBRs/c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14310},"engines":{"node":">=14"},"gitHead":"8afd5bbcd929e725b3a7ce369f78b5c9a2dd9247","scripts":{"prebuild":"npx @atlaxt/to-public"},"_npmUser":{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"},"repository":{"url":"git+https://github.com/atlaxt/to-public.git","type":"git"},"_npmVersion":"11.5.2","description":"Reads package.json and writes a sanitised, public-safe meta.json to your public folder","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/to-public_1.2.0_1774883767502_0.9850869729866552","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@atlaxt/to-public","version":"1.2.1","keywords":["package.json","meta","prebuild","cli","build-tool"],"author":{"name":"Atlas Yigit Aydin"},"license":"MIT","_id":"@atlaxt/to-public@1.2.1","maintainers":[{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"}],"homepage":"https://atlaxt.me/cli/tools/to-public","bugs":{"url":"https://github.com/atlaxt/to-public/issues"},"bin":{"to-public":"cli.js"},"dist":{"shasum":"70a343c07403a39343c6cfdeedc486a6d1df2b02","tarball":"https://registry.npmjs.org/@atlaxt/to-public/-/to-public-1.2.1.tgz","fileCount":4,"integrity":"sha512-oLXmNkJ7l4Uh97RcvPSEcoT7Zz5vLA5IgomJ/u1Swbo+6pjZ4zV2Yly3g65KjhrwGTK7n6To1uH0fbBpvBkDtA==","signatures":[{"sig":"MEUCIDn3hyEfD9TjIKCIZ6xgp4hQtwAvBbEElXygdndGFlT0AiEA2N2Spik1VMWP5iQjpNrtEe5k33gM3JE/dFg3ZJxxT8M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14260},"main":"./cli.js","engines":{"node":">=14"},"gitHead":"e88dc60286b453ce629ca5923fe005437f6cbfd4","_npmUser":{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"},"repository":{"url":"git+https://github.com/atlaxt/to-public.git","type":"git"},"_npmVersion":"11.5.2","description":"Reads package.json and writes a sanitised, public-safe meta.json to your public folder","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/to-public_1.2.1_1774884189075_0.9228066909315873","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@atlaxt/to-public","version":"1.2.2","keywords":["package.json","meta","prebuild","cli","build-tool"],"author":{"name":"Atlas Yigit Aydin"},"license":"MIT","_id":"@atlaxt/to-public@1.2.2","maintainers":[{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"}],"homepage":"https://atlaxt.me/cli/tools/to-public","bugs":{"url":"https://github.com/atlaxt/to-public/issues"},"bin":{"to-public":"cli.js"},"dist":{"shasum":"7e642f3213166115bf1518b22b338db418147b7f","tarball":"https://registry.npmjs.org/@atlaxt/to-public/-/to-public-1.2.2.tgz","fileCount":4,"integrity":"sha512-D0Ye4PQFT5ee0Qlh6A8cIE5XHpe9N7kfIO5udGfWsOgyCLcJdJJtU36NmV7aLdY4zaLSwaqOJTp7nksaladCJg==","signatures":[{"sig":"MEYCIQD74MfhJkfTKCjOfR6m5EI5NIe3Hp3+MP6yokii853y+gIhANOY/LawuJBESaErBi4933WSEOiUXdp5UNh7cqRZI+ux","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14605},"main":"./cli.js","engines":{"node":">=14"},"gitHead":"3a787a4e0fb21f1aa8024025a6a3c177cb6767c4","_npmUser":{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"},"repository":{"url":"git+https://github.com/atlaxt/to-public.git","type":"git"},"_npmVersion":"11.5.2","description":"Reads package.json and writes a sanitised, public-safe meta.json to your public folder","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/to-public_1.2.2_1774884702304_0.45665564199719944","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@atlaxt/to-public","version":"2.0.0","keywords":["package.json","meta","prebuild","cli","build-tool"],"author":{"name":"Atlas Yigit Aydin"},"license":"MIT","_id":"@atlaxt/to-public@2.0.0","maintainers":[{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"}],"homepage":"https://atlaxt.me/cli/tools/to-public","bugs":{"url":"https://github.com/atlaxt/to-public/issues"},"bin":{"to-public":"cli.js"},"dist":{"shasum":"4077fabaa4bdcdb9696e95dec027db20fd2b066b","tarball":"https://registry.npmjs.org/@atlaxt/to-public/-/to-public-2.0.0.tgz","fileCount":4,"integrity":"sha512-buYLrPN+/ob3++Ic618Y7u3tk5fIVk5D+aL8km5l7RQYPh9GTPwufkPc20gBU5jDRaypnF6w4XqULGPJDhlkcA==","signatures":[{"sig":"MEUCIQDTLLmvdZIchGf5c9vx36ALxB9p2McMl8/BfpoLipJNUQIgYG5tjhTUGtS3dvx7TFmHKs0ARvEdzhIFAe/bvU+RMHo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19016},"main":"./cli.js","engines":{"node":">=14"},"gitHead":"286b4a0fae0be28838fff8d88e8b5dd32a958e07","_npmUser":{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"},"repository":{"url":"git+https://github.com/atlaxt/to-public.git","type":"git"},"_npmVersion":"11.5.2","description":"Reads package.json and writes a sanitised, public-safe meta.json to your public folder","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/to-public_2.0.0_1774947969199_0.205164907088764","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@atlaxt/to-public","version":"3.0.0","description":"Reads package.json and writes a sanitised, public-safe meta.json to your public folder","keywords":["package.json","meta","prebuild","cli","build-tool"],"author":{"name":"Atlas Yigit Aydin"},"license":"MIT","homepage":"https://atlaxt.me/cli/tools/to-public","repository":{"type":"git","url":"git+https://github.com/atlaxt/to-public.git"},"bugs":{"url":"https://github.com/atlaxt/to-public/issues"},"main":"./cli.js","bin":{"to-public":"cli.js"},"engines":{"node":">=14"},"_id":"@atlaxt/to-public@3.0.0","gitHead":"f0d9f4dc85924f68d3b78fdbe9de2448938486d6","_nodeVersion":"22.22.2","_npmVersion":"11.5.2","dist":{"integrity":"sha512-zkbHo3jIRwVaGdf0O1mL4VHbPZ6Q2o2hmIp5oFhfCWMp3HpxSv91YtlNZ2iwwtPD8AfWz69EpyhO0VLM2J4IcA==","shasum":"196c9517696029767e949ca283b25affd4213f0e","tarball":"https://registry.npmjs.org/@atlaxt/to-public/-/to-public-3.0.0.tgz","fileCount":4,"unpackedSize":20176,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICggieQjqaDHm7MkUuoRRug1riUK3zqK8ZE0YqWS9Ok1AiBQVAYpeKJjwWayFaduBv0birMs3hctqzs/+WVMKIuddQ=="}]},"_npmUser":{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"},"directories":{},"maintainers":[{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/to-public_3.0.0_1775117198946_0.7993287117243861"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-30T15:06:27.245Z","modified":"2026-04-02T08:06:39.207Z","1.0.0":"2026-03-30T15:06:27.550Z","1.1.0":"2026-03-30T15:12:29.374Z","1.2.0":"2026-03-30T15:16:07.657Z","1.2.1":"2026-03-30T15:23:09.204Z","1.2.2":"2026-03-30T15:31:42.436Z","2.0.0":"2026-03-31T09:06:09.336Z","3.0.0":"2026-04-02T08:06:39.085Z"},"bugs":{"url":"https://github.com/atlaxt/to-public/issues"},"author":{"name":"Atlas Yigit Aydin"},"license":"MIT","homepage":"https://atlaxt.me/cli/tools/to-public","keywords":["package.json","meta","prebuild","cli","build-tool"],"repository":{"type":"git","url":"git+https://github.com/atlaxt/to-public.git"},"description":"Reads package.json and writes a sanitised, public-safe meta.json to your public folder","maintainers":[{"name":"atlasyigitaydin","email":"atlasyigitaydin@gmail.com"}],"readme":"# @atlaxt/to-public\r\n\r\nReads your `package.json` and writes a minimal `public/meta.json` automatically before every build.\r\n\r\nDefault output:\r\n\r\n- `version`\r\n- `buildDate`\r\n\r\nOptional output:\r\n\r\n- `dependencies` (string array with package names only, no version values)\r\n\r\n## Setup\r\n\r\n```bash\r\nnpx @atlaxt/to-public\r\n```\r\n\r\nThat's it. First run opens an interactive config panel in your terminal. Configure, hit Enter, and the file is generated.\r\n\r\nThis command also:\r\n\r\n- Adds `@atlaxt/to-public` to `devDependencies` (if not already there)\r\n- Adds `\"prebuild\": \"to-public\"` to your `package.json`\r\n\r\nFrom then on, `meta.json` regenerates automatically before every build.\r\n\r\n## Config panel\r\n\r\nThe panel appears on first run (when no config file exists). It lets you set:\r\n\r\n| Option | Description |\r\n| --- | --- |\r\n| `outputPath` | Where to write the output file (default: `public/meta.json`) |\r\n| `includeDependencies` | `false` by default. When `true`, adds dependency names as `string[]` |\r\n\r\nSettings are saved to `to-public.config.cjs` in your project root with inline comments. You can also edit it manually:\r\n\r\n```js\r\n/**\r\n * to-public config\r\n */\r\nmodule.exports = {\r\n  outputPath: 'public/meta.json',\r\n  includeDependencies: false,\r\n}\r\n```\r\n\r\nLegacy `to-public.config.json` is still supported.\r\n\r\n> When running as a prebuild script (non-interactive), the panel is skipped and the file is generated directly using the saved config.\r\n\r\nTo reopen the panel after setup, run:\r\n\r\n```bash\r\nnpx @atlaxt/to-public --config\r\n```\r\n\r\n## Output examples\r\n\r\n`includeDependencies: false`\r\n\r\n```json\r\n{\r\n  \"version\": \"1.2.3\",\r\n  \"buildDate\": \"2026-04-01T12:34:56.789Z\"\r\n}\r\n```\r\n\r\n`includeDependencies: true`\r\n\r\n```json\r\n{\r\n  \"version\": \"1.2.3\",\r\n  \"buildDate\": \"2026-04-01T12:34:56.789Z\",\r\n  \"dependencies\": [\"react\", \"zod\", \"zustand\"]\r\n}\r\n```\r\n","readmeFilename":"README.md"}