# uri-template-w-unescaped

> Parse and expand URI templates as defined by http://tools.ietf.org/html/draft-gregorio-uritemplate-08, with the additional, non-RFC {%unescaped} expression

Latest version **0.0.1** (published 2013-03-08) · 0 weekly downloads

## Install

```sh
npm install uri-template-w-unescaped
pnpm add uri-template-w-unescaped
yarn add uri-template-w-unescaped
bun add uri-template-w-unescaped
```

## 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.1 |
| Published | 2013-03-08 |
| First published | 2013-03-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.4.12 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | James Zetlen |
| Maintainers | jzetlen |

## Links

- npm: https://www.npmjs.com/package/uri-template-w-unescaped
- Repository: https://github.com/zetlen/uri-template
- npm.io page: https://npm.io/package/uri-template-w-unescaped

## Recent versions

- 0.0.1 (latest) — 2013-03-08

## README

# URI Template

[![Build Status](https://secure.travis-ci.org/grncdr/uri-template.png?branch=master)](http://travis-ci.org/grncdr/uri-template)

This is a node.js implementation of the URI template draft standard
defined at http://tools.ietf.org/html/rfc6570

# Example

```javascript

parser = require('uri-template')

tpl = parser.parse('/{year}/{month}/{day}{?orderBy,direction}')

tpl.expand({ year: 2006, month: 6, day: 6 }) # /2006/6/6
tpl.expand({ year: 2006, month: 6, day: 6, orderBy: 'size' })
# /2006/6/6?orderBy=size
tpl.expand({ year: 2006, month: 6, day: 6, orderBy: 'time', direction: 'asc' })
# /2006/6/6?orderBy=time&direction=asc

tpl = parser.parse('/search{?q,*otherParams}')
tpl.expand({ q: 'Bigger office', otherParams: { prefer: "Sterling's office", accept: "Crane's office" }})
# /search?q=Bigger%20office&prefer=Sterling%27s%20office&accept=Crane%27s%20office
```

For more thorough coverage of the syntax, see `test.js` or the RFC.

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