Comparing version 0.8.1 to 0.9.0
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ declare module eol { |
@@ -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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11238
213