Skip to content
Transform a file's line endings from `\r\n` to `\n`.
JavaScript
Find file
Latest commit 7d18034 Jul 26, 2013 @ForbesLindesay Add LICENSE
Failed to load latest commit information.
bin Initial code Jun 20, 2013
lib Initial code Jun 20, 2013
.gitignore Initial code Jun 20, 2013
LICENSE Add LICENSE Jul 26, 2013
index.js Initial code Jun 20, 2013
package.json Add LICENSE Jul 27, 2013
prepublish.js Initial code Jun 20, 2013
readme.md Initial code Jun 20, 2013

readme.md

Linify

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

Installation

npm install linify

API

linify(path, options)

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

License

MIT

Something went wrong with that request. Please try again.