Nanobot: Polygonal Mascot
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    enumspublic

    Enums

    Usage

    var status = new Enums([
      {
        name: 'CLOSED',
        code: '1',
        message: 'Shop close'
      },
      {
        name: 'OPENED',
        code: '2',
        message: 'Shop open'
      }
    ]);
     
    console.log(status.CLOSED);
    console.log(status.OPENED);

    Keywords

    install

    npm i enums

    Downloadsweekly downloads

    28

    version

    1.0.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar