UNPKG
json-linter-2
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
JSON linter
github.com/medikoo/json-linter
medikoo/json-linter
json-linter-2
/
lint-file.js
7 lines
(4 loc)
•
150 B
JavaScript
View Raw
1
2
3
4
5
6
7
"use strict"
;
const
readFile =
require
(
"fs2/read-file"
) , lint =
require
(
"./"
);
module
.
exports
=
fileName
=>
readFile
(fileName).
then
(lint);