## File: Readme.md

# history

  A nicer wrapper around the browser's History API. Push, replace, back, forward, etc.

## Installation

    $ component install ianstormtaylor/history

## Example

```js
var history = require('history');

history.push('/one');
history.push('/two');
history.back();
history.path(); // "/one"
```

## API

### .path()
  Get the current path. (`window.location.pathname`)

### .state()
  Get the current state. (`window.history.state`)

### .push(path, [state])
  Push the `path` onto the history stack, with an optional `state` object.

### .replace(path, [state])
  Replace the current path with a new `path`, and optional `state` object.

### .back(steps)
  Move backward an optional number of `steps`, defaults to `1`. Aliased to `backward()` for consistency.

### .forward(steps)
  Move forward an optional number of `steps`, defaults to `1`.

## License

  MIT

---

## File: component.json

{
  "name": "history",
  "repo": "ianstormtaylor/history",
  "license": "MIT",
  "version": "0.0.2",
  "description": "A nicer wrapper around the browser's History API. Push, replace, back, forward, etc.",
  "keywords": ["history", "push", "pushstate", "replace", "replacestate", "back", "forward"],
  "development": {
    "component/assert": "*"
  },
  "scripts": ["index.js"]
}

---

## File: History.md

0.0.2 - July 25, 2013
---------------------
* added `state` argument to `#push` and `#replace`
* added `#state` getter
* changed path getter to `#path`

0.0.1 - July 9, 2013
--------------------
:sparkles:

---

## File: package.json

{
  "name": "history",
  "private": true,
  "version": "0.0.2",
  "dependencies": {
    "express": "~3.3.4",
    "hbs": "~2.3.0"
  }
}