ingress-prime-stats-to-json
Version:
Takes the stats TSV string copied from Ingress Prime and converts it to JSON. Can handle tabs replaced by spaces, throws an exception if an unknown key is found.
20 lines (13 loc) • 464 B
Markdown
> Takes the stats TSV string copied from Ingress Prime and converts it to JSON. Can handle tabs replaced by spaces, throws an exception if an unknown key is found.
```
npm install ingress-prime-stats-to-json --save
```
```javascript
var stringToJSON = require('ingress-prime-stats-to-json')
var result = stringToJSON('Time Span Agent Name Agent Faction .... 81426 148245 715 9 1 1');
```
MIT