* @param {string} s * @returns {4|6|0}
(s)
| 57 | * @returns {4|6|0} |
| 58 | */ |
| 59 | function isIP(s) { |
| 60 | if (isIPv4(s)) return 4; |
| 61 | if (isIPv6(s)) return 6; |
| 62 | return 0; |
| 63 | } |
| 64 | |
| 65 | function makeSyncWrite(fd) { |
| 66 | return function(chunk, enc, cb) { |
no test coverage detected
searching dependent graphs…