Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@videsk/params-parser

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@videsk/params-parser

Generate URL through params

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Params Parser

This library allow to generate a url with params added by object, array or by units.

How to use

For start only need initialize class.

const paramParse = new ParamsParse();

Add params by one

paramParse.add()

Add params by object

paramParse.byObj({ name: 'John', number: 9236376288 });

Add params by array

paramParse.byArray('channels[$in]', ['5c82cb15582685351224cce3', '5c82cb25582685351224cce4'])

Get the URL

For get the URL with parameters only need execute:

paramParse.parse();

// Output
'?name=John&number=9236376288&channels[$in]=5c82cb15582685351224cce3&channels[$in]=5c82cb25582685351224cce4';

Copyrights

This library is totally open source with Apache 2.0 license, but was designed for Videsk™ products.

Keywords

FAQs

Package last updated on 14 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc