mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-11 10:59:55 +08:00
10 lines
210 B
TypeScript
10 lines
210 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()}`);
|
|
});
|