Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "wayfarer", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A simple router built for minimalism and speed", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,7 +9,7 @@ # wayfarer | ||
router built for minimalism and speed. Works best with | ||
[React](facebook.github.io/react) and [Browserify](github.com/substack/browserify). | ||
[Browserify](github.com/substack/browserify). | ||
## Installation | ||
```bash | ||
$ npm i --save wayfarer | ||
npm install wayfarer | ||
``` | ||
@@ -28,8 +28,5 @@ | ||
.route('/404', function() {console.log('/404')}) | ||
.route('/:user', function() {console.log('/user')}); | ||
// Match a route. | ||
router.match('/tobi') | ||
// => '/user' | ||
.route('/:user', function() {console.log('/user')}) | ||
.match('/tobi'); | ||
// => '/user' | ||
``` | ||
@@ -39,6 +36,6 @@ | ||
#### wayfarer(opts) | ||
Initialize wayfarer with options. Setting `qs` to stops wayfarer from triggering | ||
on changes to the querystring. | ||
Initialize wayfarer with options. Setting `qs` to false stops wayfarer from | ||
triggering on changes to the querystring. | ||
```js | ||
var router = wayfarer({qs: true}); | ||
var router = wayfarer({qs: false}); | ||
``` | ||
@@ -72,4 +69,3 @@ | ||
## License | ||
[MIT](https://tldrlegal.com/license/mit-license) © | ||
[Yoshua Wuyts](i@yoshuawuyts.com) | ||
[MIT](https://tldrlegal.com/license/mit-license) | ||
@@ -76,0 +72,0 @@ [npm-image]: https://img.shields.io/npm/v/wayfarer.svg?style=flat-square |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6590
76