{"name":"laplacenoma","version":"0.0.2","author":{"name":"KazariEX"},"license":"MIT","_id":"laplacenoma@0.0.2","maintainers":[{"name":"kazariex","email":"mimorimaboroshi@gmail.com"}],"homepage":"https://github.com/KazariEX/laplacenoma#readme","bugs":{"url":"https://github.com/KazariEX/laplacenoma/issues"},"dist":{"shasum":"d41041c3513391fc9907c9304f8a55976dc3a227","tarball":"http://registry-npm.ywwl.com/laplacenoma/download/laplacenoma-0.0.2.tgz","fileCount":15,"integrity":"sha512-XAIalRKCXZapdVXALGG5y9Jc7d5AMnr5NyrBWGwBvKWjSGi99ftzmdLS8mVQQF07bk8poPl8tSnjOYpkU86P5A==","signatures":[{"sig":"MEUCIQDanwpi8t5fHw0r3ZT501ewBC18XZDc4oTLUi7vqtTOZgIgRs5gS+/qLdpZrAbhmGuYUsfsWviNrAUD6bhb+sfOfKA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":36300,"size":6119,"noattachment":false,"key":"/laplacenoma/-/laplacenoma-0.0.2.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:laplacenoma-0.0.2.tgz","types":"./dist/index.d.cts","module":"./dist/index.js","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"},"scripts":{"dev":"tsdown -w","test":"vitest","build":"tsdown","release":"bumpp --no-push -c \"release: v%s\""},"_npmUser":{"name":"kazariex","email":"mimorimaboroshi@gmail.com"},"_resolved":"/private/var/folders/5z/q0k9mq5j3f9b1vbk2qk4gsm80000gn/T/afe222dc1aaa0ce5e51c9dc3578bfbe1/laplacenoma-0.0.2.tgz","_integrity":"sha512-XAIalRKCXZapdVXALGG5y9Jc7d5AMnr5NyrBWGwBvKWjSGi99ftzmdLS8mVQQF07bk8poPl8tSnjOYpkU86P5A==","repository":{"url":"git+https://github.com/KazariEX/laplacenoma.git","type":"git"},"_npmVersion":"11.5.2","description":"Reactivity analyzer for signal-based library","directories":{},"_nodeVersion":"24.3.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^10.2.3","eslint":"^9.35.0","tsdown":"^0.15.1","vitest":"^3.2.4","typescript":"^5.9.2","@types/node":"^24.4.0","@zinkawaii/tsconfig":"^0.0.2","@zinkawaii/eslint-config":"^0.4.1"},"_npmOperationalInternal":{"tmp":"tmp/laplacenoma_0.0.2_1757946480060_0.3137361524970177","host":"s3://npm-registry-packages-npm-production"},"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":1757946480250,"_cnpm_publish_time":1757946480250,"dist-tags":{"latest":"0.0.3"}}