Installations
npm install termios-fixedv12
Score
67
Supply Chain
97.4
Quality
75.1
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Developer
TKasperczyk
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
14.1.0
NPM Version
6.14.4
Statistics
36 Commits
1 Watching
2 Branches
1 Contributors
Updated on 11 Aug 2020
Languages
C++ (80.62%)
JavaScript (17.42%)
Python (1.97%)
Total Downloads
Cumulative downloads
Total Downloads
41,824
Last day
0%
81
Compared to previous day
Last week
3.2%
423
Compared to previous week
Last month
2.3%
1,664
Compared to previous month
Last year
72.5%
18,619
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
termios bindings for node.js
node-termios is a module for getting and setting terminal attributes.
API
-
an
attr
object may contain on or more of the following boolean fields:attr.iflag
:IGNBRK
: ignore BREAK conditionBRKINT
: map BREAK to SIGINTIGNPAR
: ignore (discard) parity errorsPARMRK
: mark parity and framing errorsINPCK
: enable checking of parity errorsISTRIP
: strip 8th bit off charsINLCR
: map NL into CRIGNCR
: ignore CRICRNL
: map CR to NL (ala CRMOD)IXON
: enable output flow controlIXOFF
: enable input flow controlIXANY
: any char will restart after stopIMAXBEL
: ring bell on input queue full
attr.oflag
:OPOST
: enable following output processingONLCR
: map NL to CR-NL (ala CRMOD)OCRNL
: map CR to NLONOCR
: No CR output at column 0ONLRET
: NL performs the CR function
attr.cflag
:CSIZE
: character size maskCS5
: 5 bits (pseudo)CS6
: 6 bitsCS7
: 7 bitsCS8
: 8 bitsCSTOPB
: send 2 stop bitsCREAD
: enable receiverPARENB
: parity enablePARODD
: odd parity, else evenHUPCL
: hang up on last closeCLOCAL
: ignore modem status lines
attr.lflag
:ECHOKE
: visual erase for line killECHOE
: visually erase charsECHOK
: echo NL after line killECHO
: enable echoingECHONL
: echo NL even if ECHO is offECHOPRT
: visual erase mode for hardcopyECHOCTL
: echo control chars as ^(Char)ISIG
: enable signals INTR, QUIT, [D]SUSPICANON
: canonicalize input linesIEXTEN
: enable DISCARD and LNEXTEXTPROC
: external processingTOSTOP
: stop background jobs from outputFLUSHO
: output being flushed (state)PENDIN
: XXX retype pending input (state)NOFLSH
: don't flush after interruptXCASE
: canonical upper/lower case
-
.setattr(fd, attr)
: Sets attributes of the terminal bound to the file descriptor:- fd: file descriptor
- attr: object as described above
- returns: undefined
-
.getattr(fd)
: Returns an object describing the current settings of the terminal bound to the file descriptor:- fd: file descriptor
Examples
var termios = require('termios'), data = '';
console.log("Please type something:");
process.stdin.on("data", function(d) {data += d.toString()});
setTimeout(function() {
console.log("Disabling ECHO. You won't see what you type now");
termios.setattr(process.stdin.fd, {lflag: { ECHO: false }})
console.log("\nYou typed '"+data+"'");
data = "";
}, 3000);
setTimeout(function() {
console.log("Enabling ECHO.");
termios.setattr(process.stdin.fd, {lflag: { ECHO: false }})
console.log("\nYou typed '"+data+"'");
}, 6000);
Changelog
- v0.1 - initial release
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More