JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 872
  • Score
    100M100P100Q98507F

Set a query string style field on an object.

Package Exports

  • q-set

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 (q-set) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Q-Set

Set query string style fields on an object.

Installation

Npm

npm install q-set

Bower

bower install q-set

Example

var set = require('q-set');

set({}, "a", 1); //-> { a: 1 }

set({}, "a[b]", 1); //-> { a: { b: 1 } }

set({}, "a[]", 1); //-> { a: [1] }

Contributions

  • Use gulp to run tests.

Please feel free to create a PR!