Skip to content

Create static flags of booleans, strings, or numbers for SherpaJS modular microservice platform.

Notifications You must be signed in to change notification settings

sellersindustry/SherpaJS-static-flags

Repository files navigation

SherpaJS Static Flags

NPM Version

Create static flags of booleans, strings, or numbers for SherpaJS an agnostic and modular serverless platform.

Features

  • SherpaJS Module, an Agnostic and Modular Serverless Platform
  • ✅ Expose static flags like booleans, strings, and numbers
  • ✅ Endpoint to expose all flags or singular flag

Installation

npm install sherpajs-static-flags

Example Usage

// any index.ts route
import StaticFlags from "sherpajs-static-flags";


export default StaticFlags.load({
    example: "hello world",
    test: 2
    foo: false
});

Endpoint /

{
    "example": "hello world",
    "test": 2,
    "foo": false
}

Endpoint /example

"hello world"

Endpoint /test

2

Endpoint /test

false