Skip to content

Easier Access to Constants for users #298

Closed

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');

Activity

  1. added a commit that references this issue on Aug 3, 2020
    0763e7a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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