/home/lnzliplg/public_html/strict-uri-encode.tar
index.js000064400000000212151731327550006215 0ustar00'use strict';
module.exports = str => encodeURIComponent(str).replace(/[!'()*]/g, x => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);
readme.md000064400000001221151731327550006330 0ustar00# strict-uri-encode [![Build Status](https://travis-ci.org/kevva/strict-uri-encode.svg?branch=master)](https://travis-ci.org/kevva/strict-uri-encode)

> A stricter URI encode adhering to [RFC 3986](http://tools.ietf.org/html/rfc3986)


## Install

```
$ npm install --save strict-uri-encode
```


## Usage

```js
const strictUriEncode = require('strict-uri-encode');

strictUriEncode('unicorn!foobar');
//=> 'unicorn%21foobar'

strictUriEncode('unicorn*foobar');
//=> 'unicorn%2Afoobar'
```


## API

### strictUriEncode(string)

#### string

Type: `string`, `number`

String to URI encode.


## License

MIT © [Kevin Mårtensson](http://github.com/kevva)
license000064400000002145151731327550006124 0ustar00The MIT License (MIT)

Copyright (c) Kevin Martensson <kevinmartensson@gmail.com> (github.com/kevva)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
package.json000064400000003056151731327550007047 0ustar00{
  "_from": "strict-uri-encode@^2.0.0",
  "_id": "strict-uri-encode@2.0.0",
  "_inBundle": false,
  "_integrity": "sha1-ucczDHBChi9rFC3CdLvMWGbONUY=",
  "_location": "/strict-uri-encode",
  "_phantomChildren": {},
  "_requested": {
    "type": "range",
    "registry": true,
    "raw": "strict-uri-encode@^2.0.0",
    "name": "strict-uri-encode",
    "escapedName": "strict-uri-encode",
    "rawSpec": "^2.0.0",
    "saveSpec": null,
    "fetchSpec": "^2.0.0"
  },
  "_requiredBy": [
    "/query-string"
  ],
  "_resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz",
  "_shasum": "b9c7330c7042862f6b142dc274bbcc5866ce3546",
  "_spec": "strict-uri-encode@^2.0.0",
  "_where": "/Users/rebecca/code/npm/node_modules/query-string",
  "author": {
    "name": "Kevin Mårtensson",
    "email": "kevinmartensson@gmail.com",
    "url": "github.com/kevva"
  },
  "bugs": {
    "url": "https://github.com/kevva/strict-uri-encode/issues"
  },
  "bundleDependencies": false,
  "deprecated": false,
  "description": "A stricter URI encode adhering to RFC 3986",
  "devDependencies": {
    "ava": "*",
    "xo": "*"
  },
  "engines": {
    "node": ">=4"
  },
  "files": [
    "index.js"
  ],
  "homepage": "https://github.com/kevva/strict-uri-encode#readme",
  "keywords": [
    "component",
    "encode",
    "RFC3986",
    "uri"
  ],
  "license": "MIT",
  "name": "strict-uri-encode",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/kevva/strict-uri-encode.git"
  },
  "scripts": {
    "test": "xo && ava"
  },
  "version": "2.0.0"
}