mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-20 04:55:32 +00:00
16 lines
449 B
JavaScript
16 lines
449 B
JavaScript
// NOTICE: This file is generated by Rollup. To modify it,
|
|
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
|
|
'use strict';
|
|
|
|
const node_util = require('node:util');
|
|
|
|
/**
|
|
* @param {unknown} error
|
|
* @returns {error is NodeJS.ErrnoException}
|
|
*/
|
|
function isPathNotFoundError(error) {
|
|
return node_util.types.isNativeError(error) && 'code' in error && error.code === 'ENOENT';
|
|
}
|
|
|
|
module.exports = isPathNotFoundError;
|