@schibsted/niche-utils
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4355
14