🔚 A dos2unix implementation in pure JS.
$ npm install ssp-dos2unix-js
'use strict'const dos2unix = dos2unixlet converted =console // Returned text as string without any carriage returns (\r).// If you use writable as true, returns 0 instead of text.
Omittable options object with following allowable parameters:
feedback(Boolean) - Display feedback ("File already has UNIX line endings...").
writable(Boolean) - Write change to file rather than return as string.
All options are false if omitted except for writable which is true.