2.1.3 • Published 1 month ago

brembo v2.1.3

Weekly downloads
14
License
BSD-3-Clause
Repository
github
Last release
1 month ago

brembo

A simple utility for building URLs in JavaScript

Example:

import url from 'brembo';
url.build("https://massimocandela.com", {
    path: ["example", "api", "v1"] // This can be a simple string too
    params: {
        a: 1,
        b: 2
    },
    anchor: "here"
});

It will return the following string:

https://massimocandela.com/example/api/v1?a=1&b=2#here

url.parse("https://massimocandela.com/example/api/data.json?a=1&a=2&b=3#here");

It will return the following object:

{
    host: "massimocandela.com",
    protocol: "https",
    path: ["example", "api", "v1"] // This can be a simple string too
    params: {
        a: 1,
        b: 2
    },
    anchor: "here"
}
2.1.2

1 month ago

2.1.3

1 month ago

2.1.1

2 months ago

2.0.7

2 years ago

2.0.6

3 years ago

2.0.5

3 years ago

2.0.4

4 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago