Skip to content

Easier Access to Constants for users #298

@lholmquist

Description

@lholmquist

Is your feature request related to a problem? Please describe.

If a user wants to get access to the constants, they can do that by importing/requiring like this:

const Constants = require('cloudevents/dist/constants').default;

Describe the solution you would like to see

While this works, it isn't as intuitive as it could be.

It would probably be nice if it was export at the top level, so we could do something like this:

const { Constants } = require('cloudevents');

Metadata

Metadata

Assignees

No one assigned

    Labels

    module/libRelated to the main source codetype/enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions