New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ls-enum

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ls-enum

Tiny (208B) and fast utility to extract all possible values for a given enum.

latest
Source
npmnpm
Version
0.3.2
Version published
Maintainers
1
Created
Source

ls-enum

Tiny (208B) and fast utility to extract all possible values for a given enum.

Installation

Using yarn

yarn add ls-enum

Using pnpm

pnpm add ls-enum

Using npm

npm install ls-enum

Usage

import lsEnum from 'ls-enum';

enum TestEnum {
  ValueOne = 'one',
  ValueTwo = 2
};

const values = lsEnum(TestEnum); // <- ['one', 2]

FAQs

Package last updated on 17 Apr 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