Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

No output for mkcat <filename> #1

Open
@chocolateboy

Description

@chocolateboy
mkcat1.1.5
nodev10.1.0, v10.4.1
OSLinux (Arch)

(Moved from mkdoc/mkdoc#1)

The README states that the usage for mkcat is:

mkcat README.md | mkout

But it appears to ignore the filename argument, and produces no output:

$ mkcat README.md | wc -l
0

This works:

$ cat README.md | mkcat

So I would expect this to work as well:

$ mkcat < README.md

- which it does, in part (it produces the expected output), but it also dies with an error:

node_modules/mkdoc/cli/cat.js:70
      process.stdin.end();
                    ^

TypeError: process.stdin.end is not a function
    at StreamCaller.done (node_modules/mkdoc/cli/cat.js:70:21)
    at Object.onceWrapper (events.js:273:13)
    at StreamCaller.emit (events.js:182:13)
    at done (node_modules/mkdoc/node_modules/mkcat/index.js:121:13)
    at StreamCaller.<anonymous> (node_modules/mkdoc/node_modules/mkcat/index.js:169:5)
    at Object.onceWrapper (events.js:273:13)
    at StreamCaller.emit (events.js:187:15)
    at finishMaybe (_stream_writable.js:644:14)
    at endWritable (_stream_writable.js:652:3)
    at StreamCaller.Writable.end (_stream_writable.js:592:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions