How to use the fast-url-parser.queryString function in fast-url-parser

To help you get started, we’ve selected a few fast-url-parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Andrew-Kang-G / url-knife / src / strict-parser.js View on Github external
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.


* */

import Jquery from 'jquery';

import Terms from './terms';

const fup = require("fast-url-parser");
fup.queryString = require("querystringparser");

/*
*   Private : Error Handler (Customized)
* */

// 1. ValidationError - warn users of wrong values.
function ValidationError() {

    let temp = Error.apply(this, arguments);
    temp.name = this.name = 'ValidationError';
    this.message = temp.message;

    if (Object.defineProperty) {

        // getter for more optimize goodness
        Object.defineProperty(this, 'stack', {
github JordanMachado / webgl-tools / src / dev / Query.js View on Github external
import url from 'fast-url-parser';
import defaultConfig from '../DefaultConfig';
url.queryString = require('querystringparser');

class Query
{
    constructor()
    {
        this.parseQuery();
    }
    init(config)
    {
        if (!this.config)
        {
            this.config = config ? config : defaultConfig;
        }
    }
    parseQuery()
    {
github Patreon / nion / src / url / index.js View on Github external
import url from 'fast-url-parser'
import queryString from 'qs'
url.queryString = queryString

import map from 'lodash.map'
import includes from 'lodash.includes'

import ApiManager from '../api'

export const buildUrl = (...args) => {
    const defaultApi = ApiManager.getDefaultApi()
    const defaultBuildUrl = ApiManager.getBuildUrl(defaultApi)
    return defaultBuildUrl(...args)
}

export const urlBuilder = (...args) => {
    const defaultApi = ApiManager.getDefaultApi()
    const defaultBuildUrl = ApiManager.getBuildUrl(defaultApi)
    return () => {
github Andrew-Kang-G / url-knife / src / service.js View on Github external
import Pattern from './pattern';
import ValidationError from './error-handler';
import Valid from './valid';
import Util from './util';

const fup = require("fast-url-parser");
fup.queryString = require("querystringparser");

/*
*     Private : Processing
* */
const Normalizer = {

    modified_url : null,

    extractAndNormalizeProtocolFromSpacesRemovedUrl(){

        let protocol = null;

        let rx = new RegExp('^(' + Pattern.Descendants.fuzzy_protocols  + '|'+ Pattern.Descendants.fuzzy_protocols2 + ')' + Pattern.Descendants.fuzzy_protocol_domain_delimiter);

        let match = {};
        let isMatched = false;

fast-url-parser

Extremely fast implementation of node core url library

MIT
Latest version published 9 years ago

Package Health Score

67 / 100
Full package analysis