Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

xy-parser

2.2.2 • 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 ->
[
    [ 1, 2 ],
    [ 3, 4 ],
    [ 5, 6 ],
    [ 7, 8 ]
]
*/

API Documentation

License

MIT

install

npm i xy-parser

Downloadsweekly downloads

44

version

2.2.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability