Nocturnal Pumpkin Maelstrom
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

stringquery

1.0.8 • Public • Published

Install

npm install stringquery --save

Usage


  const querySearch = require("stringquery");

  querySearch("?status=APPROVED&page=1&limit=20"); 
  // > { limit: "10", page:"1", status:"APPROVED" }



  const obj = querySearch("?status=APPROVED&page=1limit=20");  
  // > { limit: "10", page:"1",   status:"APPROVED" }


  // obj.status
  // obj.page
  // obj.limit




  OR

  import querySearch from "stringquery";

  querySearch("?status=APPROVED&page=1&limit=20"); 
  // > { limit: "10", page:"1", status:"APPROVED" }



  const obj = querySearch("?status=APPROVED&page=1&limit=20"); 
  // > { limit: "10", page:"1", status:"APPROVED"   }


  // obj.status
  // obj.page
  // obj.limit

Github: https://github.com/accimeesterlin/query-search

License

MIT

Install

npm i stringquery

DownloadsWeekly Downloads

611

Version

1.0.8

License

MIT

Unpacked Size

4.25 kB

Total Files

5

Last publish

Collaborators

  • avatar