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

hash-brown-router

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hash-brown-router - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

2

package.json
{
"name": "hash-brown-router",
"version": "1.3.1",
"version": "1.3.2",
"description": "A client-side router that only cares about the bits after the #",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -0,8 +1,16 @@

# hash-brown-router
A router that is only concerned with single-page apps that want to change state based on the bits of the url after the hash.
[![Build Status](https://travis-ci.org/TehShrike/hash-brown-router.svg)](https://travis-ci.org/TehShrike/hash-brown-router)
## Why another client-side routing library?
## To use
This library:
1. uses a path-parsing library that lets you [generate links programmatically](https://github.com/tehshrike/page-path-builder#usage)
2. comes with a handy stub for testing - any library that takes hash-brown-router can use the included [stub](#testability) in unit tests.
# API
## Construction
var makeRouter = require('hash-brown-router')

@@ -46,11 +54,14 @@

## Other
## `stop()`
### `stop()`
If for some reason you want the router to start ignoring hash change events. you can call `router.stop()`.
If for some reason you want the router to start ignoring hash change events. you can call `route.stop()`.
# Testability
License
======
Want to use a stub of this library that works in node? Just `require('hash-brown-router/mock')` for all your automated testing needs.
[![Build Status](https://travis-ci.org/TehShrike/hash-brown-router.svg)](https://travis-ci.org/TehShrike/hash-brown-router)
# License
[WTFPL](http://wtfpl2.com)
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