{"name":"laplacenoma","type":"module","version":"0.0.3","description":"Reactivity analyzer for signal-based library","author":{"name":"KazariEX"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/KazariEX/laplacenoma.git"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"},"./rules/vue":{"import":"./dist/rules/vue.js","require":"./dist/rules/vue.cjs"},"./package.json":"./package.json"},"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.cts","devDependencies":{"@types/node":"^24.4.0","@zinkawaii/eslint-config":"^0.4.1","@zinkawaii/tsconfig":"^0.0.2","bumpp":"^10.2.3","eslint":"^9.35.0","tsdown":"^0.15.1","typescript":"^5.9.2","vitest":"^3.2.4"},"scripts":{"build":"tsdown","dev":"tsdown -w","release":"bumpp --no-push -c \"release: v%s\"","test":"vitest"},"_id":"laplacenoma@0.0.3","bugs":{"url":"https://github.com/KazariEX/laplacenoma/issues"},"homepage":"https://github.com/KazariEX/laplacenoma#readme","_integrity":"sha512-fsQMsMozEzGg/DhQG73nf8Nzx0XvU8RJFRViYuocM6pQSa33lucnHvJzsb4udQUzH5p5zdX63t9qRahKAhWtiQ==","_resolved":"/tmp/5e4ab7232f9a511a640d9b181320e9b3/laplacenoma-0.0.3.tgz","_from":"file:laplacenoma-0.0.3.tgz","_nodeVersion":"24.8.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-fsQMsMozEzGg/DhQG73nf8Nzx0XvU8RJFRViYuocM6pQSa33lucnHvJzsb4udQUzH5p5zdX63t9qRahKAhWtiQ==","shasum":"f232f5a969df671748e3f230f53b60b4e479cbfb","tarball":"http://registry-npm.ywwl.com/laplacenoma/download/laplacenoma-0.0.3.tgz","fileCount":15,"unpackedSize":37903,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/laplacenoma@0.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICZL03oP/s3ZfCCrnsyA/Y7FPeUwVuJovoirFbD67wCbAiB1+WwapYpFZ/7jxPpeS3rKVxdvMKLyOegL+OFC+SljgA=="}],"size":6363,"noattachment":false,"key":"/laplacenoma/-/laplacenoma-0.0.3.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2bb0a49a-5214-4274-a59c-a66a0b21e70f"}},"directories":{},"maintainers":[{"name":"kazariex","email":"mimorimaboroshi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/laplacenoma_0.0.3_1758028109877_0.8470323109530817"},"_hasShrinkwrap":false,"readme":"# Laplacenoma\n\n[![version](https://img.shields.io/npm/v/laplacenoma?color=white&labelColor=86BAD4&label=npm)](https://www.npmjs.com/package/laplacenoma)\n[![downloads](https://img.shields.io/npm/dm/laplacenoma?color=white&labelColor=86BAD4&label=downloads)](https://www.npmjs.com/package/laplacenoma)\n[![license](https://img.shields.io/npm/l/laplacenoma?color=white&labelColor=86BAD4&label=license)](/LICENSE)\n\nLaplacenoma is a reactivity analyzer built on top of the TypeScript language service, inspired by the reactivity visualization feature in [vuejs/language-tools](https://github.com/vuejs/language-tools). Its goal is to provide framework-agnostic and configurable reactivity analysis.\n\n## Installation\n\n```bash\npnpm i laplacenoma\n```\n\n## Usage\n\n```ts\nimport { createAnalyzer } from \"laplacenoma\";\nimport rulesVue from \"laplacenoma/rules/vue\";\nimport type ts from \"typescript\";\n\nconst analyzer = createAnalyzer({\n  rules: rulesVue,\n});\n\nexport function getReactivityAnalysis(\n  ts: typeof import(\"typescript\"),\n  languageService: ts.LanguageService,\n  fileName: string,\n  position: number,\n) {\n  const program = languageService.getProgram()!;\n  const sourceFile = program.getSourceFile(fileName)!;\n  return analyzer.analyze(sourceFile, position, {\n    typescript: ts,\n    languageService,\n  });\n}\n```\n","publish_time":1758028110055,"_cnpm_publish_time":1758028110055,"dist-tags":{"latest":"0.0.3"}}