HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/shop.komma.nl/node_modules/yorkie/src/utils/is.js
'use strict'

const fs = require('fs')

function readFile(filename) {
  return fs.readFileSync(filename, 'utf-8')
}

function huskyOrYorkie(filename) {
  const data = readFile(filename)
  return data.indexOf('#husky') !== -1 || data.indexOf('#yorkie') !== -1
}

function ghooks(filename) {
  const data = readFile(filename)
  return data.indexOf('// Generated by ghooks. Do not edit this file.') !== -1
}

function preCommit(filename) {
  const data = readFile(filename)
  return data.indexOf('./node_modules/pre-commit/hook') !== -1
}

module.exports = {
  huskyOrYorkie,
  ghooks,
  preCommit
}