Package Exports
- parse-pairs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (parse-pairs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
parse-pairs 
Parse key-value pairs
Install
Installation of the npm package:
> npm install --save parse-pairs
Usage
import parsePairs from 'parse-pairs'
parsePairs('Batman="Bruce Wayne" "Wonder Woman"="Diana Prince"')
// {
// Batman: 'Bruce Wayne',
// 'Wonder Woman': 'Diana Prince'
// }
- both keys and values can be quoted
- single and double quotes are supported
- white spaces around pairs are ignored
- no escape sequences, feel free to open an issue or PR if necessary
Development
# Install dependencies
> npm install
# Run the tests
> npm test
# Continuously compile
> npm run dev
# Continuously run the tests
> npm run dev-test
# Build for production (automatically called by npm install)
> npm run build
Contributions
Contributions are very welcomed, either on the documentation or on the code.
You may:
- report any issue you've encountered;
- fork and create a pull request.
License
ISC © Julien Fontanet