UNPKG
spotty
Version:
latest (1.0.0)
1.0.0
Lookup the current process's TTY device
github.com/keybase/node-lookup-tty
keybase/node-lookup-tty
spotty
/
test
/
test.js
12 lines
(11 loc)
•
193 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env node
var
main =
require
(
'../'
) main.
tty
(
function
(
err, res
) {
if
(err) {
console
.
error
(err.
toString
()); process.
exit
(
2
) }
else
{
console
.
log
(res) process.
exit
(
0
); } })