# backbone-history-events

> Some extra events for the Backbone.History module

Latest version **1.0.0** (published 2017-02-28) · 0 weekly downloads

## Install

```sh
npm install backbone-history-events
pnpm add backbone-history-events
yarn add backbone-history-events
bun add backbone-history-events
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-02-28 |
| First published | 2017-02-28 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Matt Bryson |
| Maintainers | mattbryson |
| Keywords | backbone, history, events, Backbone.history.navigate, 404 |

## Links

- npm: https://www.npmjs.com/package/backbone-history-events
- Repository: https://github.com/mattbryson/backbone.historyEvents
- Homepage: https://raw.githubusercontent.com/mattbryson/backbone.historyEvents/docs/index.html
- Issues: https://github.com/mattbryson/backbone.historyEvents/issues
- npm.io page: https://npm.io/package/backbone-history-events

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-02-28

## README

# backbone.historyEvents

Extra events for the Backbone History module.

This simply adds a couple of events to the `Backbone.history` module, allowing you to respond to things
like missing routes and changes to the URL (rather than route triggers)

## Example
````
Backbone.history.on('navigated', function(fragment, options, routeTriggered){
  console.log('Navigated to ', fragment, '. Triggered router:', routeTriggered, ' with options ', options );
  });

  Backbone.history.navigate('/myRoute', {trigger:true});
  // Naivagted to  /myRoute . Triggered router: true  with options  Object {trigger: true}
````

## Docs
See [https://mattbryson.github.io/backbone.historyEvents] for documentation

---
_Source: https://npm.io/package/backbone-history-events · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
