node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

linify

Transform a file's line endings from <code>\r\n</code> to <code>\n</code>.

Linify

Transform a file's line endings from \r\n to \n.

npm install linify

Recursively transforms a directory or file and returns an array of the paths of all the files that were transformed.

  • path: string path to either a file or a directory
  • options: object hash of:
    • filter: any kind of filter on the paths that should be transformed
    • preview: if true then the transformed files are not actually written

MIT