npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

burl-invert

2.0.0

@yoshuawuyts

npmHomeRepoSnykSocket
Downloads:0
$ npm install burl-invert
DailyWeeklyMonthlyYearly

burl-invert

NPM version build status Test coverage Downloads

Invert the previous and next _link values. Makes sure the correct comparison is executed within burl, but the returned values are inverted.

Installation

npm install burl-invert

Usage

var invert = require('burl-invert');
var burl = require('burl');

var links = invert(burl());
links.set({
  previous: 'mysite.com/?from=7654321',
  next: 'mysite.com/?until=1234567'
});

links.get();
// => {
//   previous: 'mysite.com/?from=7654321',
//   next: 'mysite.com/?until=1234567'
// }

See also

  • burl

License

MIT