UNPKG

@expressjs/codemod

Version:

Codemods for updating express servers.

11 lines (10 loc) 442 B
/** * By default, jscodeshift(recast) uses the line terminator of the OS the code runs on. * This is often not desired, so we instead try to detect it from the input. * If there is at least one Windows-style linebreak (CRLF) in the input and * no Unix-style linebreak (LF), use that. In all other cases, use Unix-style (LF). * @return '\n' or '\r\n' */ export declare function getOptions(code: string): { lineTerminator: string; };