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

@schibsted/niche-utils

Package Overview
Dependencies
Maintainers
7
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@schibsted/niche-utils - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

4

package.json
{
"name": "@schibsted/niche-utils",
"version": "0.0.7",
"version": "0.0.8",
"license": "Apache-2.0",

@@ -20,3 +20,3 @@ "main": "lib/index.js",

},
"gitHead": "2e42f5416c45b51cc947fad7738acf168889b723"
"gitHead": "b13e91cb1a6eb60cbfd70322250fd9a6364cc191"
}
# `niche-utils`
WIP
This package contains utilities used in multiple projects and packages used by Niche team. **Use at your own risk.**
## Exported methods
### `getEventTarget`
Safely returns new EventTarget instance. If `EventTarget` is not supported, returns `document.createElement('a')` which should work the same way.
### `getFromLocalStorage`, `saveToLocalStorage`, `removeFromLocalStorage`
Local storage methods to safely get, save and remove data from local storage. If local storage is not supported, get returns `undefined` and other methods do nothing.
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