347 packages found

Easy but powerful enums for safer code. e.g. const Fruit = new Enum("apple pear banana"); gives you Fruit.apple, Fruit.has("apple"), and Fruit.$apple() (as a fail-fast value), whilst Fruit.isApple('penguin') will throw an error.

published 1.1.8 3 years ago
M
Q
P

将ts enum 转 js 的产物减少一半,e[e['xxx']=0]='xxx'] => e['xxx']=0,e[e.xxx=0]='xxx' => e.xxx=0

published 1.0.0 3 months ago
M
Q
P

This package provides the methods needed to replace a PostgreSQL ENUM in Sequelize migrations.

published 1.6.0-rc1 4 years ago
M
Q
P

Joi extensions for enum mapping.

published 1.0.3 5 years ago
M
Q
P

枚举

published 1.4.4 20 hours ago
M
Q
P

Sharing enums with a Java Spring Boot back-end.

published 1.3.0 2 months ago
M
Q
P

A TypeScript string enum for compile-time safety when working with event.key

published 2.0.12 10 months ago
M
Q
P

Return the enumeration constant associated with a supported strided array data type value.

published 0.0.2 a year ago
M
Q
P

Find unused files, dependencies and exports in your TypeScript and JavaScript projects

published 2.13.0 7 days ago
M
Q
P

🔒 Crypto secure enums.

published 1.0.3 a year ago
M
Q
P

Convenient enumeration pattern for JavaScript

published 4.2.9 2 years ago
M
Q
P

Return the data type enumeration constant of an ndarray data buffer.

published 0.0.6 a year ago
M
Q
P

Return the data type string associated with a supported ndarray data type value.

published 0.0.1 a year ago
M
Q
P

An enum of HTML DOM node types

published 1.1.1 7 years ago
M
Q
P

A Vanilla JavaScript library to work with Enums

published 1.1.14 4 years ago
M
Q
P

BiEnum 是一种静态枚举方案,是 TypeScript 原生枚举(enum)的加强版。BiEnum is a static enumeration scheme, which is an enhanced version of TypeScript's native enum.

published 1.0.1 6 months ago
M
Q
P

Simple string-based enumeration for javascript

published 1.1.0 7 years ago
M
Q
P

A repository of common interfaces, types and enums for TypeScript.

published 2.0.0 2 years ago
M
Q
P

SEnum = Super Enum Factory

published 1.1.5 7 years ago
M
Q
P

Very simple Enum class

published 1.0.3 5 years ago
M
Q
P