Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify starting number #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Specify starting number #3

wants to merge 2 commits into from

Conversation

donavon
Copy link

@donavon donavon commented Jul 2, 2015

The last arg passed in Enum can be an options object. Currently only options.startNumber is supported. It specifies that starting number for the first enum (default = 1).

@pbouzakis
Copy link
Collaborator

I really would like to keep ennumit simple, with no configuration (one of the reasons I didn't use another npm package. I don't see why you would need to start at another number other than making this fit some legacy code. If that's the case I'd rather update existing code or not use enumit for that case. Most languages enums are number but you don't specify it.

donavon added 2 commits July 2, 2015 07:57
Currently only `options.startNumber` is supported. It specifies that starting number for the first enum (default = 1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants