format-params

2.0.1 • Public • Published

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)

Dependencies (2)

Dev Dependencies (5)

Package Sidebar

Install

npm i format-params

Weekly Downloads

0

Version

2.0.1

License

ISC

Last publish

Collaborators

  • quim