mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
* Added declarations for 'get-stdin'. * Moved 'types' dependency on 'node to a triple-slash ref comment. * Added linting for 'get-stdin'.
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());
|
|
}) |