# rising-url

> Extends require('url').format() with parameters and easier inputs

Latest version **1.0.4** (published 2015-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install rising-url
pnpm add rising-url
yarn add rising-url
bun add rising-url
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2015-05-22 |
| First published | 2014-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Peter Marton, @slashdotpeter |
| Maintainers | hekike |
| Keywords | node.js, url, format |

## Links

- npm: https://www.npmjs.com/package/rising-url
- Repository: https://github.com/RisingStack/rising-url
- Issues: https://github.com/RisingStack/rising-url/issues
- npm.io page: https://npm.io/package/rising-url

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^2.4.1

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2015-05-22
- 1.0.3 — 2014-10-30
- 1.0.2 — 2014-10-30
- 1.0.1 — 2014-10-30
- 1.0.0 — 2014-10-30

## README

rising-url
==========

[![Build Status](https://travis-ci.org/RisingStack/rising-url.svg?branch=master)]
(https://travis-ci.org/RisingStack/rising-url)

Extends require('url').format() with parameters and easier inputs

## Example

Options is compatible with the [url.format(urlObj)](http://nodejs.org/api/url.html)  
plus accept the `param` field

```javascript
var url = require('rising-url');

url.format('..', ..., options);
```

```javascript
url.format('users/:user', ':page', {
  param: {
    user: 'john',
    page: 'profile'
  }
});

// -> 'users/john/profile'
```

```javascript
url.format('http://risingstack.com', 'users/:user', ':page', {
  param: {
    user: 'john',
    page: 'profile'
  },
  query: {
    limit: 100,
    start: 10
  },
  hash: 'image'
});

// -> 'http://risingstack.com/users/john/profile?limit=100&start=10#image'
```

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