Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wayfarer

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wayfarer - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc