Skip to content

ForbesLindesay-Unmaintained/linify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published