openrtb-macrosub

0.2.0 • Public • Published

OpenRTB Macro Substitutor#

Build Status

Usage##

var sub = require('./openrtb-macrosub');
 
sub('http://some/crazy/win/URL/{$AUCTION_ID}/{$AUCTION_PRICE}', {id: 'some-id', price: 500});
// This will output 'http://some/crazy/win/URL/some-id/500'.
 
 
sub('http://some/URL/needs/{$AUCTION_SEAT_ID}', {seat: 'e$c4p ed'}, true);
// This will output 'http://some/URL/needs/e%24c4p%20ed'.

TODO##

  • Support macro encoding.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    5
  • 0.1.0
    0

Package Sidebar

Install

npm i openrtb-macrosub

Weekly Downloads

5

Version

0.2.0

License

MIT

Last publish

Collaborators

  • garukun