mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 20:37:14 +08:00
9 lines
208 B
TypeScript
9 lines
208 B
TypeScript
import getStdin = require("get-stdin");
|
|
|
|
getStdin().then(str => {
|
|
console.log(str.toLowerCase());
|
|
});
|
|
|
|
getStdin.buffer().then(buffer => {
|
|
console.log("Length " + buffer.length + buffer.toString());
|
|
}) |