Fixes #964 - allows for configurable line breaks.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Thu, 2 Aug 2018 12:31:54 +0000 (14:31 +0200)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Thu, 2 Aug 2018 12:32:10 +0000 (14:32 +0200)
commit59bf9908e40a96a608cc1ec5350cd082ae1ce1bd
tree280585001c5b3fec7ec7a0cb414b0cfa756b693f
parent48808f7f8201036f571b1a01b2871158f492da5d
Fixes #964 - allows for configurable line breaks.

Use `{ format: { breakWith: 'lf' } }` option to configure what line
break looks like, allows `'crlf'` or `'lf'`, defaults to current system
one so former on Windows and latter on Unix.
History.md
README.md
lib/options/format.js
lib/writer/helpers.js
lib/writer/simple.js
lib/writer/source-maps.js
test/integration-test.js
test/options/format-test.js