Module
Enum is a javascript module that introduces the Enum Type. It works for node.js, in the browser and for deno.
Latest
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ "author": "adrai", "name": "enum", "version": "3.0.4", "private": false, "type": "module", "main": "./cjs/enum.js", "exports": { "./package.json": "./package.json", ".": { "require": "./cjs/enum.js", "default": "./lib/enum.js" } }, "module": "./lib/enum.js", "engines": { "node": ">=0.6.0" }, "dependencies": {}, "devDependencies": { "@babel/cli": "7.8.4", "@babel/core": "7.9.0", "@babel/preset-env": "7.9.5", "babel-plugin-add-module-exports": "1.0.2", "browserify": "16.5.1", "eslint": "6.8.0", "eslint-config-standard": "14.1.1", "eslint-plugin-import": "2.20.1", "eslint-plugin-node": "11.0.0", "eslint-plugin-promise": "4.2.1", "eslint-plugin-require-path-exists": "1.1.9", "eslint-plugin-standard": "4.0.1", "expect.js": "0.3.1", "mocha": "7.1.1", "uglify-js": "3.8.1" }, "description": "Enum is a javascript module that introduces the Enum Type. It works for node.js, in the browser and for deno.", "keywords": [ "enum" ], "homepage": "https://github.com/adrai/enum", "repository": { "type": "git", "url": "git@github.com:adrai/enum.git" }, "bugs": { "url": "https://github.com/adrai/enum/issues" }, "licenses": [ { "type": "MIT", "url": "https://raw.github.com/adrai/enum/master/licence" } ], "scripts": { "lint": "eslint .", "compile": "rm -rf cjs && mkdir cjs && babel lib -d cjs --presets=@babel/preset-env --plugins=add-module-exports && echo '{\"type\":\"commonjs\"}' > cjs/package.json", "browser": "rm -rf dist && mkdir dist && browserify --standalone Enum cjs/enum.js -o dist/enum-$npm_package_version.js && uglifyjs dist/enum-$npm_package_version.js --compress --mangle -o dist/enum-$npm_package_version.min.js", "build": "npm run compile && npm run browser", "test": "npm run lint && npm run build && mocha test -R spec --globals Enum" }}