UNPKG
node-wifi
Version:
alpha (2.0.16-alpha.0)
latest (2.0.16)
2.1.0-alpha.1
2.1.0-alpha.0
2.0.16
2.0.16-alpha.0
2.0.15
2.0.14
2.0.13
2.0.12
2.0.11
2.0.10
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
NodeJS tool to manage wifi
github.com/friedrith/node-wifi
friedrith/node-wifi
node-wifi
/
src
/
__test__
/
unlogger.js
13 lines
(11 loc)
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
fs =
require
(
'fs'
);
module
.
exports
=
path
=>
new
Promise
(
(
resolve, reject
) =>
{ fs.
readFile
(path,
'utf8'
,
(
error, data
) =>
{
if
(error) {
reject
(); }
else
{
resolve
(data.
replace
(
/.*\n/
,
''
)); } }); });