🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

append-url-params

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

append-url-params

a plugin for append some query params on an url!

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

为url添加查询参数

功能:

  • 参数可覆盖之前url的同名参数
  • 参数可编码

安装:

npm install append-url-params --save

用法:

const append = require('append-url-params');

append(url,params,encode);

参数:

第一个参数是 目标url, 第二个参数是添加的参数对象,{key:value}, 第三个参数是是否 查询字符串字符串加密, 默认为true ,不加密传 false

Keywords

javascript

FAQs

Package last updated on 31 May 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