extract-media-type-parameters

0.2.0 • Public • Published

extract-media-type-parameters

simple way of extracting parameters from media-types/mime-types

example

const extractMediaTypeParameters = require('extract-media-type-paramaters')
 
const parameters = extractMediaTypeParameters('application/json;q=1;charset=utf-8;NAME="linus";noop=;')
 
console.log(parameters) // { q: '1', charset: 'utf-8', name: 'linus', noop: '' }

Package Sidebar

Install

npm i extract-media-type-parameters

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

6.26 kB

Total Files

7

Last publish

Collaborators

  • linuscash