Skip to content

Output on a pipe stops at 64K #286

@dolmen

Description

@dolmen

On Linux, when the output of the js-yaml CLI is a pipe to another command, the output is truncated to the first 65536 bytes.

Here is how to reproduce (with any big enough YAML file):

$ wget http://static.snoyman.com/entries.yaml     # A 190K YAML file
$ js-yaml entries.yaml > entries.json ; wc -c entries.json
245736 entries.json
$ js-yaml entries.yaml | wc -c
65536

Tested with node v6.1.0 (arch: amd64) and js-yaml 3.6.0 with bash 4.3.11(1) on Ubuntu 14.04.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions