move api to new version and add tests

I'd like to understand what people are used to.
Could you investigate what the de facto standard in NodeJS to define constants?