Socket
Socket
Sign inDemoInstall

@schibsted/niche-utils

Package Overview
Dependencies
0
Maintainers
8
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @schibsted/niche-utils

This package contains utilities used in multiple projects and packages used by Niche team. **Use at your own risk.**


Version published
Maintainers
8
Install size
17.2 kB
Created

Readme

Source

niche-utils

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.

FAQs

Last updated on 08 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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