Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xy-parser

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xy-parser

Parse a text-file and convert it to an array of XY points

  • 1.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
increased by28.44%
Maintainers
2
Weekly downloads
 
Created
Source

XY text file parser

NPM version build status David deps npm download

XY file parser allows to convert a text file to an array of XY.

Example of use:

var parseXY = require('xy-parser');
var result=parseXY.parse('1 2\r3 4');

Or with options:

var parseXY = require('xy-parser')
var result=XYParser.parse(data,
    {
        uniqueX: true,
        arrayType: 'xxyy',
        normalize: true
    }
);

Options

  • normalize : will set the maximal value to 1
  • arrayType :
    • 'xxyy' [[x1,x2,x3,...],[y1,y2,y2,...]]
    • 'xyxy' [[x1,y1],[x2,y2],[x3,y3], ...]] (default)
  • uniqueX : Make the X values unique (works only with xxyy format). If the X value is repeated the sum of Y is done.

License

MIT

Keywords

FAQs

Package last updated on 31 May 2017

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

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