UNPKG
gint
Version:
latest (0.9.2)
0.9.2
0.9.1
0.9.0
0.8.1
0.8.0
0.7.0
0.6.0
0.5.3
0.5.2
0.3.0
0.2.0
0.1.0
A pluggable and configurable GIT linter tool
github.com/runk/gint
runk/gint
gint
/
__tests__
/
helpers.js
10 lines
(5 loc)
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
'use strict'
;
const
fs =
require
(
'fs'
);
exports
.
write
=
(
filePath, data
) =>
fs.
writeFileSync
(filePath, data);
exports
.
read
=
(
filePath
) =>
fs.
readFileSync
(filePath,
'utf-8'
);
exports
.
exists
=
(
filePath
) =>
fs.
existsSync
(filePath);