# url-version-resolver

> Given the JSON output from grunt-assets-versioning and the unversioned url, resolve to the versioned url

Latest version **0.1.1** (published 2015-01-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install url-version-resolver
pnpm add url-version-resolver
yarn add url-version-resolver
bun add url-version-resolver
```

## 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.1 |
| Published | 2015-01-22 |
| First published | 2015-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Chris Webb |
| Maintainers | cwebbdesign |
| Keywords | grunt-assets-versioning, url, versioning, browserify |

## Links

- npm: https://www.npmjs.com/package/url-version-resolver
- Repository: git@github.com:cwebbdesign/url-version-resolver
- Homepage: https://github.com/cwebbdesign/url-version-resolver
- Issues: https://github.com/cwebbdesign/url-version-resolver/issues
- npm.io page: https://npm.io/package/url-version-resolver

## 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.1 (latest) — 2015-01-22
- 0.1.0 — 2015-01-22

## README

# url version resolver

A mapping tool that takes the .json output from https://github.com/theasta/grunt-assets-versioning and given the original url returns the versioned url.

Could be used more generically. given an array of objects, will find the one where 'originalValue' matches the given value and will return a different specified property of the object


## Installation

    npm install url-version-resolver

## Usage

    var urlMap = require('./path/to/json.json');
    var urlResolver = require('url-version-resolver')(urlMap);
    var resolveUrl = urlResolver.resolveUrl;
    var ajax = require('your-prefered-way-to-do-ajax');
    var url = resolveUrl('/js/unversioned.js'); // returns '/js/versioned.js'
	
    ajax(url, callback);

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