linify
Transform a file's line endings from `\r\n` to `\n`.
Last updated 13 years ago by forbeslindesay .
MIT · Repository · Original npm · Tarball · package.json
$ npm install linify 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (13 years ago)

2 Versions

  • 1.0.1                                ...           13 years ago
  • 1.0.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 5
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 2
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE