"use strict";
/* Socket Lib - Built with rolldown */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_env_boolean = require('./boolean.js');
const require_env_rewire = require('./rewire.js');

//#region src/env/pre-commit.ts
/**
* @file PRE_COMMIT environment variable getter. Exports `getPreCommit()`, a
*   boolean coercion of `PRE_COMMIT` used to detect when code is running inside
*   a pre-commit hook.
*/
/**
* Returns whether the PRE_COMMIT environment variable is set to a truthy value.
*
* @example
*   ;```typescript
*   import { getPreCommit } from '@socketsecurity/lib/env/pre-commit'
*
*   if (getPreCommit()) {
*     console.log('Running in pre-commit hook')
*   }
*   ```
*
* @returns `true` if running in a pre-commit hook, `false` otherwise
*/
/*@__NO_SIDE_EFFECTS__*/
function getPreCommit() {
	return /* @__PURE__ */ require_env_boolean.envAsBoolean(require_env_rewire.getEnvValue("PRE_COMMIT"));
}

//#endregion
exports.getPreCommit = getPreCommit;