No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.babelrc
.gitignore
.npmignore
README.md
package.json
yarn.lock

README.md

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')