{"library":"detect-ts-node","type":"library","category":null,"description":"The `detect-ts-node` package is a utility designed to programmatically determine if the currently executing JavaScript or TypeScript code is running within a `ts-node` environment. It provides a single boolean export that is `true` when `ts-node` is active and `false` otherwise. The current stable version is 1.0.5. Given its highly focused and stable nature, the package likely maintains a very low release cadence, with updates primarily addressing internal `ts-node` changes or minor bug fixes. A key differentiator is its simplicity and direct implementation, based on established discussions within the `ts-node` community, making it a reliable choice for developers who need to implement conditional logic, configuration adjustments, or specific debugging behaviors when operating under `ts-node` versus a pre-compiled JavaScript environment. It explicitly targets `ts-node` detection, distinguishing it from broader TypeScript compilation environment checks.","language":"javascript","status":"active","version":"1.0.5","tags":["javascript","detect","ts-node","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install detect-ts-node","imports":["import detectTSNode from 'detect-ts-node';","const detectTSNode = require('detect-ts-node');","// No specific type import is needed, as `detectTSNode` is a boolean value.\n// TypeScript's type inference handles it automatically."]},{"cmd":"yarn add detect-ts-node","imports":[]},{"cmd":"pnpm add detect-ts-node","imports":[]}],"homepage":null,"github":"https://github.com/yorickdevries/detect-ts-node","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/detect-ts-node","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/detect-ts-node/compatibility"}}