{"_id":"@anubhavtyagi27/json-file-preview","name":"@anubhavtyagi27/json-file-preview","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@anubhavtyagi27/json-file-preview","displayName":"JSON File Preview","description":"Read files into JSON strings with an editable file picker and rendered Markdown preview","author":{"name":"Anubhav Tyagi"},"license":"MIT","homepage":"https://github.com/anubhavtyagi27/yaak-plugin-json-file-preview","repository":{"type":"git","url":"git+https://github.com/anubhavtyagi27/yaak-plugin-json-file-preview.git"},"keywords":["yaak","yaak-plugin","json","file","markdown","template-function"],"version":"0.0.1","main":"build/index.js","scripts":{"build":"yaak plugin build","dev":"yaak plugin dev","test":"vitest run"},"devDependencies":{"@types/node":"^24.10.1","typescript":"^5.9.3","vitest":"^4.0.14"},"dependencies":{"@yaakapp/api":"^0.7.0"},"gitHead":"dd55475b01fdfc06bb6164d714bf1666ffe20f5d","_id":"@anubhavtyagi27/json-file-preview@0.0.1","bugs":{"url":"https://github.com/anubhavtyagi27/yaak-plugin-json-file-preview/issues"},"_nodeVersion":"26.3.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-iArRacHIMzMPrDGpRfUDsxvMjlj4ub34NEGjnAVoi32//i54eqKkPR5/w0LJU6GmIjTZG9ZzVMe6T1DJtk6zJQ==","shasum":"dd4b0bd078e77c0c0a9f3a1a9a2f3c1dae506a8a","tarball":"https://registry.npmjs.org/@anubhavtyagi27/json-file-preview/-/json-file-preview-0.0.1.tgz","fileCount":4,"unpackedSize":4835,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDyGKsM7MOt0/W+Uoi7GON9iQluIedldAttYI3gMjRyyAIhAPgXDoFBH07+i99GDdx6IUfayeP3YlPKL+k/sKapL6Bd"}]},"_npmUser":{"name":"anubhavtyagi27","email":"a4anubhavtyagi@gmail.com"},"directories":{},"maintainers":[{"name":"anubhavtyagi27","email":"a4anubhavtyagi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/json-file-preview_0.0.1_1781509187384_0.07977467022880935"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-15T07:39:47.108Z","0.0.1":"2026-06-15T07:39:47.493Z","modified":"2026-06-15T07:39:47.653Z"},"maintainers":[{"name":"anubhavtyagi27","email":"a4anubhavtyagi@gmail.com"}],"description":"Read files into JSON strings with an editable file picker and rendered Markdown preview","homepage":"https://github.com/anubhavtyagi27/yaak-plugin-json-file-preview","keywords":["yaak","yaak-plugin","json","file","markdown","template-function"],"repository":{"type":"git","url":"git+https://github.com/anubhavtyagi27/yaak-plugin-json-file-preview.git"},"author":{"name":"Anubhav Tyagi"},"bugs":{"url":"https://github.com/anubhavtyagi27/yaak-plugin-json-file-preview/issues"},"license":"MIT","readme":"# JSON File Preview\n\nA Yaak template-function plugin for safely inserting file contents inside JSON\nstrings.\n\n## Features\n\n- Select or change the source file using Yaak's file picker.\n- Preview Markdown files as rendered Markdown before sending the request.\n- Escape quotes, backslashes, and newlines so the generated request remains\n  valid JSON.\n\n## Usage\n\nInsert `${[ json.readFile(...) ]}` inside a JSON string:\n\n```json\n{\n  \"system_instruction\": {\n    \"parts\": [\n      {\n        \"text\": \"${[ json.readFile(...) ]}\"\n      }\n    ]\n  }\n}\n```\n\nClick the template function to select a file and open the **File Preview**\nsection to inspect its contents.\n","readmeFilename":"README.md","_rev":"1-100f2f20d8ef57863e2b0a0f263bfd59"}