Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.03 KB

README.md

File metadata and controls

39 lines (23 loc) · 1.03 KB

mongoose-bread-url-builder

A Url Builder for mongoose-bread.

npm version unittests

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)

License

MIT