(filePath: string)
| 111 | } |
| 112 | |
| 113 | export function loadFile(filePath: string): string { |
| 114 | const content: string | Buffer = readFileSync(filePath); |
| 115 | if (typeof content === 'string') { |
| 116 | return content; |
| 117 | } |
| 118 | return content.toString(); |
| 119 | } |
| 120 | |
| 121 | export function isPrimitive(val) { |
| 122 | return !['object', 'function'].includes(typeof val) || val === null; |
no test coverage detected
searching dependent graphs…