Guest User

Untitled

a guest
Dec 12th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. /**
  2. * Detect and return OS specific line ending.
  3. *
  4. * @returns {String}
  5. */
  6. function detectLineEnding() {
  7. if ( os.platform() === 'win32' )
  8. return '\r\n';
  9. if ( os.platform() === 'darwin' )
  10. return '\r';
  11. return '\n';
  12. }
Add Comment
Please, Sign In to add comment