Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/boennemann/url-safe


https://github.com/boennemann/url-safe

Last synced: about 16 hours ago
JSON representation

Awesome Lists containing this project

README

        

# url-safe
[![Build Status](https://travis-ci.org/boennemann/url-safe.svg)](https://travis-ci.org/boennemann/url-safe)
[![Coverage Status](https://coveralls.io/repos/boennemann/url-safe/badge.svg?branch=master&service=github)](https://coveralls.io/github/boennemann/url-safe?branch=master)
[![Dependency Status](https://david-dm.org/boennemann/url-safe.svg)](https://david-dm.org/boennemann/url-safe)
[![devDependency Status](https://david-dm.org/boennemann/url-safe/dev-status.svg)](https://david-dm.org/boennemann/url-safe#info=devDependencies)
[![npm version](https://badge.fury.io/js/url-safe.svg)](http://badge.fury.io/js/url-safe)

`npm i -S url-safe`

```js
var s = require('url-safe')

console.log(s('http://user:[email protected]'))
// http://example.com

console.log(s('http://user:[email protected]', '***'))
// http://***@example.com
```