sherpajs-static-flags
v1.1.4
Published
Create static flags of booleans, strings, or numbers for SherpaJS an agnostic and modular serverless platform.
Readme
SherpaJS Static Flags
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-flagsExample 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
2Endpoint /test
false