detect-line-endings
This is a utility that will return the platform and line ending character for a given string
It returns an object with properties, 'platform' and 'EOL';
var fs = ;var detect = ;var dos = fs; assert;
Thanks to the work of Wes Mason for his better regular expressions.