# uri-params

> Format uri with variables. It can run both in Node.js runtime and browsers.

Latest version **0.1.3** (published 2017-04-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install uri-params
pnpm add uri-params
yarn add uri-params
bun add uri-params
```

## 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.1.3 |
| Published | 2017-04-24 |
| First published | 2017-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | yedaodao |
| Maintainers | yedaodao |
| Keywords | uri-params, url-params, browser, uri, params, variables, url |

## Links

- npm: https://www.npmjs.com/package/uri-params
- Repository: https://github.com/yedaodao/url-params
- Homepage: https://github.com/yedaodao/url-params#readme
- Issues: https://github.com/yedaodao/url-params/issues
- npm.io page: https://npm.io/package/uri-params

## 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

- 0.1.3 (latest) — 2017-04-24
- 0.1.2 — 2017-04-24
- 0.1.0 — 2017-04-24

## README

# uri-params

[![Build Status](https://travis-ci.org/yedaodao/uri-params.svg?branch=master)](https://travis-ci.org/yedaodao/uri-params)
[![Coverage Status](https://coveralls.io/repos/github/yedaodao/uri-params/badge.svg?branch=master)](https://coveralls.io/github/yedaodao/uri-params?branch=master)

Format uri with variables. It can run both in Node.js runtime and browsers.

## Get Started

Use npm to install:
```
npm install --save uri-params
```


Use Commonjs/CMD
```javascript
import uriParams from 'uri-params';

let url = 'http://example.com/:id';
// http://example.com/1
console.log(uriParams(url, {id:1}));
```

Use in browsers
```html
<script src="http://example.com/public/node_modules/uri-params/dist/uri-params.js"></script>
<script> 
window.uriParams('http://example.com/:id', {id:1});
</script>
```

## Feedback  
If you have any questions or requirements, use [Issues](https://github.com/yedaodao/uri-params/issues).

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