Getting started

The core module of SugoiJS supplies the main classes and functions which are used by sugois' modules.

Some of the module features are:

  • Extendable exception classes.

  • Singleton objects & injections ( powered by InversifyJS).

  • Policies - argument validator + decorator implementation.


npm install --save @sugoi/core


Under your tsconfig - compilerOptions set:

  • "target": "es5"

  • "emitDecoratorMetadata": true

  • "experimentalDecorators": true

  • "lib": ["es2015","dom"]


You are able to use the config template which was set for the @sugoi/demo application:

  "compilerOptions": {
    "baseUrl": "./src",
    "allowJs": true,
    "target": "es5",
    "module": "commonjs",
    "moduleResolution": "node",
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": [
    "typeRoots": [
    "types": [

Last updated