UNPKG
atow
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
A tool to test exposed API key in your code
atow
/
src
/
check.js
14 lines
(11 loc)
•
275 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
fs =
require
(
'fs'
);
const
arr = fs.
readFileSync
(
'./\.gitignore'
).
toString
().
split
(
"\r\n"
)
let
val; arr.
map
(
item
=>
{
if
(item[
0
] ==
'/'
) { val = item.
slice
(
1
);
let
index = arr.
indexOf
(item); arr[index] = val } })
module
.
exports
= arr;