Files
DefinitelyTyped/get-stdin/index-tests.ts
Daniel Rosenwasser e31cdc7baa Added declarations for 'get-stdin'. (#13128)
* Added declarations for 'get-stdin'.

* Moved 'types' dependency on 'node to a triple-slash ref comment.

* Added linting for 'get-stdin'.
2016-12-07 11:23:24 -08:00

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());
})