Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vivin committed Sep 21, 2015
1 parent bd13431 commit 96a421d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ I figured there must be a better way to realize enums in JavaScript while addres

This works on the browser, in Nashorn, and on Node. The library exposes a single object (called `Enum` if you're on the browser or have loaded the file in Nashorn) with a method called `define`. The signature is `Enum.define(<string>, <array> | <object>)`.

The current version is 1.0.0 and is available [here](https://github.com/vivin/enumjs/releases/tag/v1.0.0). The library is also available as a node package called [**node-enumjs**](https://www.npmjs.com/package/node-enumjs). To install, just run `npm install node-enumjs`. Then you can use it like so:
The current version is 1.0.1 and is available [here](https://github.com/vivin/enumjs/releases/tag/v1.0.1). The library is also available as a node package called [**node-enumjs**](https://www.npmjs.com/package/node-enumjs). To install, just run `npm install node-enumjs`. Then you can use it like so:

```javascript
var Enum = require('node-enumjs');
Expand Down
4 changes: 2 additions & 2 deletions dist/enum.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* @preserve
* enum.js - Type-safe enums in JavaScript. Modeled after Java enums.
* Version 1.0.0
* Version 1.0.1
* Written by Vivin Paliath (http://vivin.net)
* License: BSD License
* Copyright (C) 2015
*/

(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define('enum',factory);
define('enum',[], factory);
} else if (typeof module === 'object' && module.exports) {
module.exports = factory();
} else {
Expand Down
4 changes: 2 additions & 2 deletions dist/enum.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-enumjs",
"version": "1.0.0",
"version": "1.0.1",
"description": "An implementation of type-safe enums in JavaScript (modeled after Java enums)",
"main": "dist/enum.min.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/enum.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @preserve
* enum.js - Type-safe enums in JavaScript. Modeled after Java enums.
* Version 1.0.0
* Version 1.0.1
* Written by Vivin Paliath (http://vivin.net)
* License: BSD License
* Copyright (C) 2015
Expand Down

0 comments on commit 96a421d

Please sign in to comment.