Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

xy-parser

3.0.0 • Public • Published

xy-parser

NPM version build status Test coverage npm download

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

Installation

$ npm install --save xy-parser

Usage

import {parseXY} from 'xy-parser';
const data = `1   2
3   4
5   6
7   8`;
const result = parseXY(data);
/* result ->
  {
    x: [1, 3, 5, 7],
    y: [2, 4, 6, 8]
  }
*/

API Documentation

License

MIT

Install

npm i xy-parser

DownloadsWeekly Downloads

300

Version

3.0.0

License

MIT

Unpacked Size

14.5 kB

Total Files

9

Last publish

Collaborators

  • avatar
  • avatar