Socket
Book a DemoInstallSign in
Socket

linify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linify

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

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
387
127.65%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 20 Jun 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts