JSPM

@nanmo/search-params-tools

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q15098F
  • License MIT

provides searchParams management tools

Package Exports

  • @nanmo/search-params-tools
  • @nanmo/search-params-tools/dist/index.js

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 (@nanmo/search-params-tools) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

SearchParmas Tools 提供了 SearchParams 便捷操作方法

addSearchParams 添加 SearchParams Api
addSearchParams('a=1&b=2', { c: 3, d: 4 })
// return 'a=1&b=2&c=3&d=4'
delSearchParams 删除 SearchParams Api
delSearchParams('a=1&b=2&c=3&d=4', ['c', 'd'])
// return 'a=1&b=2'
getSearchParams 返回 SearchParams 的 JSON 对象的 Api
delSearchParams('a=1&b=2')
// return {a: 1, b: 2}