mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00: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()}`);
|
|
});
|