Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "xy-parser", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Parse a text-file and convert it to an array of XY points", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
{ | ||
"name": "xy-parser", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Parse a text-file and convert it to an array of XY points", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -11,5 +11,8 @@ # XY text file parser | ||
## Example of use: | ||
``` | ||
var result=XYParser.parse(realValue, {normalize: true}) | ||
var parseXY = require('xy-parser') | ||
var result=parseXY(realValue, {normalize: true}) | ||
``` | ||
@@ -16,0 +19,0 @@ |
'use strict'; | ||
module.exports.parse = function (text, options) { | ||
function parseXY (text, options) { | ||
var options = options || {}; | ||
@@ -64,1 +64,3 @@ var lines = text.split(/[\r\n]+/); | ||
parseXY.parse = parseXY; // keep compatibility | ||
module.exports = parseXY; // direct export |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5295
79
38
0