{"_id":"@edems-dev/md-discord-syntax-core","name":"@edems-dev/md-discord-syntax-core","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@edems-dev/md-discord-syntax-core","version":"1.0.0","description":"Platform-independent Discord spoiler and subtext syntax detection","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"build":"tsc","prepack":"npm run build","typecheck":"tsc --noEmit","test":"tsx --test tests/*.test.ts"},"keywords":["markdown","discord","spoiler","subtext","parser"],"author":{"name":"Edems-DEV"},"license":"GPL-3.0","_id":"@edems-dev/md-discord-syntax-core@1.0.0","gitHead":"eb90a3edefa5542247f9c2249ffc90fd49667f0a","_nodeVersion":"22.17.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-O3JMu7O7lKx02hXVpx87NYf2qVOY0LPXONVMuLgMc9dkN3OU/klPM6t6ciCp2HH+IrkQsdWuNP3dX5gZQkrrQA==","shasum":"29d5ac7d7122116b97061f9d06dd552e51877920","tarball":"https://registry.npmjs.org/@edems-dev/md-discord-syntax-core/-/md-discord-syntax-core-1.0.0.tgz","fileCount":9,"unpackedSize":38380,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDGfLl3P1EEPuafaMvAs4WO8FJx5RUtVLcPkIsfNLQKRAiEApZgV3UCPJuNqwyQmBz8V+ysb/XnYEak4nHdBP7SF2vs="}]},"_npmUser":{"name":"edems-dev","email":"edems.dev@gmail.com"},"directories":{},"maintainers":[{"name":"edems-dev","email":"edems.dev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/md-discord-syntax-core_1.0.0_1784647907143_0.5139066459136383"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-21T15:31:46.991Z","1.0.0":"2026-07-21T15:31:47.340Z","modified":"2026-07-21T15:31:47.535Z"},"maintainers":[{"name":"edems-dev","email":"edems.dev@gmail.com"}],"description":"Platform-independent Discord spoiler and subtext syntax detection","keywords":["markdown","discord","spoiler","subtext","parser"],"author":{"name":"Edems-DEV"},"license":"GPL-3.0","readme":"# @edems-dev/md-discord-syntax-core\n\nPlatform-independent Discord spoiler (`||spoiler||`) and subtext (`-# subtext`) syntax parser with zero dependencies.\n\nPart of the [md-discord-syntax](https://github.com/Edems-DEV/md-discord-syntax) repository.\n\n## Installation\n\n```bash\nnpm install @edems-dev/md-discord-syntax-core\n```\n\n## Minimal API Usage\n\n```ts\nimport { findSpoilerRanges, isSubtextLine, stripSubtextPrefix } from '@edems-dev/md-discord-syntax-core'\n\nconst text = 'Hello ||secret|| world'\nconst spoilers = findSpoilerRanges(text)\n// [{ from: 6, to: 16, contentFrom: 8, contentTo: 14 }]\n\nconst line = '-# Subtext line'\nif (isSubtextLine(line)) {\n  const content = stripSubtextPrefix(line) // \"Subtext line\"\n}\n```\n\n## License\n\n[GPL-3.0](LICENSE) © Edems-DEV\n","readmeFilename":"README.md","_rev":"1-c897f19aa742fd9fed9ae46403a8f8a5"}