Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Detect and return OS specific line ending.
- *
- * @returns {String}
- */
- function detectLineEnding() {
- if ( os.platform() === 'win32' )
- return '\r\n';
- if ( os.platform() === 'darwin' )
- return '\r';
- return '\n';
- }
Add Comment
Please, Sign In to add comment