1.0.5 • Published 5 months ago
mongoose-bread-url-builder v1.0.5
mongoose-bread-url-builder
A Url Builder for mongoose-bread.
Why This Plugin
mongoose-bread is a pagination and softdelete library for quick feature-rich setup of JSON apis. This package accompanies the frontend by creating urls with chainable methods, instead of string concatenation, to create api requests.
Dependencies
none
Installation
npm install mongoose-bread-url-builder
Quick Use
Import the plugin in your Project
// your imports
import BreadUrlBuilder from "mongoose-bread-url-builder";
const rootUrl = "https://api.example.com/api/v1/"
const urlBuilder = new BreadUrlBuilder(rootUrl)