mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-07-11 12:41:06 +01:00
Finish HackMyCore reshaping.
Reintroduce HackMyCore, dropping the interim submodule, and reorganize and improve tests.
This commit is contained in:
12
dist/utils/file-contains.js
vendored
Normal file
12
dist/utils/file-contains.js
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
/**
|
||||
Definition of the SyntaxErrorEx class.
|
||||
@module file-contains.js
|
||||
*/
|
||||
|
||||
(function() {
|
||||
module.exports = function(file, needle) {
|
||||
return require('fs').readFileSync(file, 'utf-8').indexOf(needle) > -1;
|
||||
};
|
||||
|
||||
}).call(this);
|
Reference in New Issue
Block a user