# webpack-parse-query **Repository Path**: mirrors_netflix/webpack-parse-query ## Basic Information - **Project Name**: webpack-parse-query - **Description**: Webpack Loader Utils' parseQuery as a separate module - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # webpack-parse-query ## Exports: ### `parseQuery` ``` javascript var parseQuery = require('webpack-parse-query'); var query = parseQuery(this.query); assert(typeof query == "object"); if(query.flag) // ... ``` ``` text null -> {} ? -> {} ?flag -> { flag: true } ?+flag -> { flag: true } ?-flag -> { flag: false } ?xyz=test -> { xyz: "test" } ?xyz[]=a -> { xyz: ["a"] } ?flag1&flag2 -> { flag1: true, flag2: true } ?+flag1,-flag2 -> { flag1: true, flag2: false } ?xyz[]=a,xyz[]=b -> { xyz: ["a", "b"] } ?a%2C%26b=c%2C%26d -> { "a,&b": "c,&d" } ?{json:5,data:{a:1}} -> { json: 5, data: { a: 1 } } ``` ## License MIT (http://www.opensource.org/licenses/mit-license.php)