parse-swap-title

0.1.0 • Public • Published

parse-swap-title

Parses strings like this:

[US-MI] [H] Paypal [W] KUL ES-87

to this:

{
  "zone": "US",
  "region": "MI",
  "have": "Paypal",
  "type": "buying",
  "want": "KUL ES-87"
}

Usage

import parseTitle from 'parse-swap-title'

const result = parseTitle('[US-MI] [H] Paypal [W] KUL ES-87')

Readme

Keywords

none

Package Sidebar

Install

npm i parse-swap-title

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • nicinabox