# @dwdarm/url-builder

> A library for creating URL string with path, URI fragment, and query parameters for NodeJS and browser.

Latest version **0.0.2** (published 2020-07-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install @dwdarm/url-builder
pnpm add @dwdarm/url-builder
yarn add @dwdarm/url-builder
bun add @dwdarm/url-builder
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2020-07-21 |
| First published | 2020-07-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Fajar Dwi Darmanto |
| Maintainers | dwdarm |

## Links

- npm: https://www.npmjs.com/package/@dwdarm/url-builder
- Repository: https://github.com/dwdarm/url-builder
- Homepage: https://github.com/dwdarm/url-builder#readme
- Issues: https://github.com/dwdarm/url-builder/issues
- npm.io page: https://npm.io/package/@dwdarm/url-builder

## Recent versions

- 0.0.2 (latest) — 2020-07-21
- 0.0.1 — 2020-07-17

## README

# url-builder
A library for creating URL string with path, URI fragment, and query parameters for NodeJS and browser.

## installation
```
npm install @dwdarm/url-builder
```

## usage
```javascript
const urlBuilder = require('@dwdarm/url-builder') 

// BASIC USAGE

urlBuilder(baseUrl, options = {})

// example:

urlBuilder('http://example.com', {
  path: 'path',
  hash: 'hash',
  query: {
    foo: 'bar',
    array: ['one', 'two', 'three']
  }
})

// output: http://example.com/path?foo=bar&array=one,two,three#hash

```

---
_Source: https://npm.io/package/@dwdarm/url-builder · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
