# xsm-url-utils

> url utils

Latest version **1.1.0** (published 2015-12-28) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install xsm-url-utils
pnpm add xsm-url-utils
yarn add xsm-url-utils
bun add xsm-url-utils
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2015-12-28 |
| First published | 2015-08-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | xsm-ue |
| Maintainers | luobotang, xsm-ue |
| Keywords | url, utils |

## Links

- npm: https://www.npmjs.com/package/xsm-url-utils
- Repository: https://github.com/xsm-ue/xsm-url-utils
- Homepage: https://github.com/xsm-ue/xsm-url-utils#readme
- Issues: https://github.com/xsm-ue/xsm-url-utils/issues
- npm.io page: https://npm.io/package/xsm-url-utils

## 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.1.0 (latest) — 2015-12-28
- 1.0.0 — 2015-08-18
- 0.9.0 — 2015-08-03

## README

# xsm-url-utils

url utils

# install

```hash
npm install xsm-url-utils
```

# usage

In node, or with browserify:
```javascript
var UrlUtils = require('xsm-url-utils');
```

- {Object-UrlParts} parseUrl({string})

- {string} concatUrlParts({Object-UrlParts} urlParts)


- {string} addTimestamp({string} url)

```javascript
UrlUtils.addTimestamp('http://www.sample.com/path.html')
// return:
// "http://www.sample.com/path.html?v=1438165051488"
```

- {Object} parseParams({string} params)
- {Object} getParams({string} url)
- {string} getParam({string} url, {string} paramName)

```javascript
UrlUtils.addTimestamp('http://www.sample.com/path.html?name=luobo&age=18', 'name')
// return:
// "luobo"
```

# test

```hash
npm test
```

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