Socket
Socket
Sign inDemoInstall

observ-location-hash

Package Overview
Dependencies
5
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "observ-location-hash",
"main": "index.js",
"version": "1.0.0",
"version": "1.0.1",
"description": "Observable interface to the browser hash location",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -14,12 +14,14 @@ # observ-location-hash [![Build Status](https://travis-ci.org/ajoslin/observ-location-hash.svg?branch=master)](https://travis-ci.org/ajoslin/observ-location-hash)

```js
var observHash = require('observ-location-hash')
var ObservHash = require('observ-location-hash')
observHash(function (hash) {
var hash = ObservHash('/initial-path')
hash(function (hash) {
//=> (called on window's hashchange event)
})
observHash()
hash()
//=> returns current hash, minus '#' character
observHash.set(path)
hash.set(path)
//=> sets current hash

@@ -30,2 +32,4 @@ ```

#### `ObservHash([initialPath])` -> `observHash`
#### `observHash([listener])` -> `function`

@@ -32,0 +36,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc