This package has been deprecated

Author message:

Prefer using string iterpolation or templating before using `popsicle`

popsicle-constants

0.1.0 • Public • Published

Popsicle Constants

NPM version NPM downloads Build status Test coverage

Replace constants in the request URL.

Installation

npm install popsicle-constants --save

Usage

var request = require('popsicle')
var constants = require('popsicle-constants')
 
request('http://example.com/{API_KEY}/users.json')
  .use(constants({
    API_KEY: 'abc'
  }))
  //=> { url: "http://example.com/abc/users.json" }

License

MIT

/popsicle-constants/

    Package Sidebar

    Install

    npm i popsicle-constants

    Weekly Downloads

    3

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • blakeembrey