Socket
Book a DemoInstallSign in
Socket

format-params

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

format-params

a simple way to format params for an http request

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
1
Created
Source

format-params

a simple way to format params for an http request

Build StatusCoverage StatusISC LicenseNodeJS

JavaScript Style Guide

api

const formatParams = require('format-params)

example

formatParams('/id', { id: 123 })
// should return /123

formatParams('/resource/id/child/nameParent', { id: 123,  nameParent: 'Roy'})
// should return /resource/123/child/Roy

ISC License (ISC)

Keywords

http

FAQs

Package last updated on 20 Jul 2017

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