Socket
Socket
Sign inDemoInstall

@nuskin/ns-util

Package Overview
Dependencies
Maintainers
5
Versions
1730
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuskin/ns-util


Version published
Weekly downloads
525
increased by43.44%
Maintainers
5
Weekly downloads
 
Created
Source

ns-util

Kindly add a basic usage here after you've created a utility.

Equinox Local Storage Usage

Equinox Local Storage utilities. It is used in the following projects:

  • my-site-home
  • Add your project if you're using this
import { equinoxLocalStorage } from '@nuskin/ns-util';

// Get the list of enabled markets.
// Returns an array of strings if found.
// Otherwise, it will return an empty array.
const markets = equinoxLocalStorage.getEnabledMarkets();
// output: ['US', 'CA'] | []

// Check if the argument is in the list of enabled markets.
// Returns a boolean.
const isEnabled = equinoxLocalStorage.isMarketEnabled('US');
// output: true | false

// Save the value in local storage.
equinoxLocalStorage.setEnabledMarkets(['US', 'CA']);
// output: void

FAQs

Package last updated on 09 Aug 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc