Skip to content

insector-ab/object-constants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

object-constants · GitHub license npm version

Define constants on an object.

Install

npm install object-constants

Example usage

import { addConstantsToClass } from 'object-constants';

export class Compliance {}
addConstantsToClass(Compliance, {
  NONE: 'None',
  ICAO: 'ICAO',
  FAA: 'FAA',
  TP312: 'TP312',
  CAP168: 'CAP168',
  TRANSPORTSTYRELSEN: 'Transportstyrelsen'
});

Change log

N/A

License

This software is licensed under the MIT License.

About

Define constants on an object

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published