Skip to content

Why's this code so ugly? #244

Description

@chiro-hiro

https://github.com/mafintosh/csv-parser/blob/master/index.js#L3-L4

const [cr] = Buffer.from('\r')
const [nl] = Buffer.from('\n')

Apparently it's CR and LF, CR 0x0d and LF 0x0a. Why does it need a Buffer to get these values?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions