{"_id":"@_errcheck/node","_rev":"4-d6ca91533ac3065b093bafe163a52728","name":"@_errcheck/node","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@_errcheck/node","version":"0.1.0","license":"MIT","_id":"@_errcheck/node@0.1.0","maintainers":[{"name":"errcheck","email":"shailendra.kumar.pro@gmail.com"}],"dist":{"shasum":"e1bd8180b4f5431f46f7499a144fcd8fa60844f3","tarball":"https://registry.npmjs.org/@_errcheck/node/-/node-0.1.0.tgz","fileCount":8,"integrity":"sha512-Rf5bWdP3xYlxcY0Uf58svsPLOhmA/3tI0p854msQFwaSiTXNWn04SMLK1OTkciDw+Ug/7QbfjdApAWu2sZSmyw==","signatures":[{"sig":"MEYCIQCiz55RKAox50dx4r2+Ac24A3i0kGKd/Ra1O/b1kX8bYwIhAJE8HlDUU7v/DSpN9RmPbzb+JJqcaSV0ljSUskHOhkNz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40051},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","build":"tsup","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"errcheck","email":"shailendra.kumar.pro@gmail.com"},"description":"Errcheck error tracking SDK for Node.js.","directories":{},"_nodeVersion":"22.23.1","dependencies":{"@_errcheck/core":"0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","typescript":"^5.7.2","@types/node":"^22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/node_0.1.0_1784645255785_0.7168301855167916","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Renamed to @errcheck/js-server. Please migrate: npm install @errcheck/js-server"},"0.1.1":{"name":"@_errcheck/node","version":"0.1.1","license":"MIT","_id":"@_errcheck/node@0.1.1","maintainers":[{"name":"errcheck","email":"shailendra.kumar.pro@gmail.com"}],"dist":{"shasum":"f53f7c5e60ddc1676b21b2d7487652459b49408a","tarball":"https://registry.npmjs.org/@_errcheck/node/-/node-0.1.1.tgz","fileCount":9,"integrity":"sha512-wBMMu74sFuSSpOvc3QyK5QxtunXV5PihhkhZagpC6WGDmgzHcWzc4FEHgHUHjKTb1F9kdTpcsCOaNpu0fXTsBw==","signatures":[{"sig":"MEQCIDXid3HhTf7IRj6mvyNaZ89gaJN/ouA7+aRuB4ti37joAiAPVnQEpOoV/iDtspk652T8owjS1Inhk41uhKX+8isveA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41163},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","build":"tsup","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"errcheck","email":"shailendra.kumar.pro@gmail.com"},"description":"Errcheck error tracking SDK for Node.js.","directories":{},"_nodeVersion":"22.23.1","dependencies":{"@_errcheck/core":"0.1.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","typescript":"^5.7.2","@types/node":"^22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/node_0.1.1_1784646045467_0.21789342317247762","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Renamed to @errcheck/js-server. Please migrate: npm install @errcheck/js-server"},"0.1.2":{"name":"@_errcheck/node","version":"0.1.2","license":"MIT","_id":"@_errcheck/node@0.1.2","maintainers":[{"name":"errcheck","email":"shailendra.kumar.pro@gmail.com"}],"dist":{"shasum":"00c300cdbe4f84bd583be63a270e1d59af61bd48","tarball":"https://registry.npmjs.org/@_errcheck/node/-/node-0.1.2.tgz","fileCount":9,"integrity":"sha512-NDopCKKYux9ivdPgxliIZA5bWO34/7s/WFr8ztI9efm4xwHTFV5RrK4Uaxny5GoyxZUPhkKhBcHqIwES/JCZRQ==","signatures":[{"sig":"MEYCIQCT0gr/gV5qr6wxCZ6FoL4MBH3JoPOVmzQI096Fh9N3bQIhAIGVqneMEOX7iYjH+DQcPd2MdKomq3VTRBfe9cvbfyZK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41128},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","build":"tsup","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"errcheck","email":"shailendra.kumar.pro@gmail.com"},"description":"Errcheck error tracking SDK for Node.js.","directories":{},"_nodeVersion":"22.23.1","dependencies":{"@_errcheck/core":"0.1.2"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","typescript":"^5.7.2","@types/node":"^22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/node_0.1.2_1784647441580_0.48259563386417503","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Renamed to @errcheck/js-server. Please migrate: npm install @errcheck/js-server"}},"time":{"created":"2026-07-21T14:47:35.674Z","modified":"2026-08-01T14:11:19.186Z","0.1.0":"2026-07-21T14:47:35.917Z","0.1.1":"2026-07-21T15:00:45.598Z","0.1.2":"2026-07-21T15:24:01.736Z"},"license":"MIT","description":"Errcheck error tracking SDK for Node.js.","maintainers":[{"name":"errcheck","email":"shailendra.kumar.pro@gmail.com"}],"readme":"# @_errcheck/node\n\nErrcheck's error-tracking SDK for Node.js — `uncaughtException`/`unhandledRejection`\nhandlers, `AsyncLocalStorage`-backed per-request isolation, and an HTTP transport.\n\n## Install\n\n```bash\nnpm install @_errcheck/node\n# or\npnpm add @_errcheck/node\n# or\nyarn add @_errcheck/node\n```\n\n```js\nimport * as Errcheck from \"@_errcheck/node\";\n\nErrcheck.init({\n  dsn: \"https://examplePublicKey@errcheck.example.com/1234567890abcdef\", // add project dsn here\n  environment: process.env.NODE_ENV,\n});\n```\n\nIn a server, wrap each request in an isolation scope so tags, user, and breadcrumbs\nnever leak between requests:\n\n```js\napp.use((req, res, next) => {\n  Errcheck.withIsolationScope(() => {\n    Errcheck.setUser({ id: req.user?.id });\n    next();\n  });\n});\n```\n\n## API\n\n`init(options)`, `captureException(error, hint?)`, `captureMessage(message, level?)`,\n`addBreadcrumb(breadcrumb)`, `setUser(user)`, `setTag(key, value)`,\n`setContext(key, context)`, `flush(timeout?)`, `getClient()`, plus\n`withIsolationScope(callback)` for per-request isolation.\n\n## License\n\nMIT\n","readmeFilename":""}