🚀 Socket Launch Week 🚀 Day 4: Introducing Historical Analytics.Learn More
Socket
Sign inDemoInstall
Socket

newline

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newline

A small module for detecting line endings in files.

0.0.3
latest
Source
npm
Version published
Weekly downloads
5.7K
-32.46%
Maintainers
1
Weekly downloads
 
Created
Source

newline Build Status

Install

Install with npm

npm install --save newline

Usage

// Detects the line ending used in the string source and returns "CR", "LF" or "CRLF"
newline.detect(source);

var newSource = newline.set(source, "LF"); // Sets the source to the specified line endings

Keywords

line-endings

FAQs

Package last updated on 08 Feb 2014

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