Socket
Socket
Sign inDemoInstall

eol

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eol - npm Package Compare versions

Comparing version 0.8.1 to 0.9.0

0

.eslintrc.json

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ declare module eol {

6

eol.js

@@ -20,5 +20,9 @@ !function(root, name, make) {

function converts(to) {
return function(text) {
function convert(text) {
return text.replace(newline, to)
}
convert.toString = function() {
return to
}
return convert
}

@@ -25,0 +29,0 @@

2

package.json
{
"name": "eol",
"description": "Newline character converter",
"version": "0.8.1",
"version": "0.9.0",
"homepage": "https://github.com/ryanve/eol",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -0,0 +0,0 @@ # eol

@@ -31,2 +31,6 @@ !function(root) {

aok('split mixed', eol.split('0\r\n1\n2\r3\r\n4').join('') === '01234')
aok('lf function coerces to string', String(eol.lf) === '\n')
aok('crlf function coerces to string', String(eol.crlf) === '\r\n')
aok('cr function coerces to string', String(eol.cr) === '\r')
aok('auto function coerces to string', String(eol.auto) === isWindows ? '\r\n' : '\n')

@@ -33,0 +37,0 @@ aok.pass(meths, function(method, i) {

@@ -0,0 +0,0 @@ /* global eol */

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc