0.7.142 • Published 2 years ago

@cloud-technology/parameter v0.7.142

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
2 years ago

@cloud-technology/parameter

A Zero-Dependency "Type-Interface" via Node.js

While intentionally ambiguous, parameter extends a primitive string. Specifically, the following utility methods are available to the Parameter class:

  • Parameter.format()
  • Parameter.string()
  • Parameter.enumerations()
  • Parameter.instantiate()
  • Parameter.create()

to follow an opinionated convention to be used in cloud-related

Parameters often used during configuration can be a difficult concept to standardize.

@cloud-technology/parameter aims to strictly define a naming and constructor convention to ease efforts associated with configuration, while allowing for an easy inheritance pattern to further extend from; examples of applicable extensions include usages with:

  • etcd
  • Hashicorp's vault
  • AWS Secure Systems Manager
  • AWS Secrets Manager
  • Microsoft Cloud Vault
  • GCP Credential Management

Table of Contents

Type-Interface

What is meant by "Type-Interface" is welcome to interpretation. However, the intended definition is as follows:

A primitive data-type, with special utility functions and methods.

Usage

@cloud-technology/parameter uses the latest Node.js LTS version; to quickly enable, run nvm use.

Package ScriptNPM Command InvocationDescription
testnpm testUnit-Test the Distribution
startnpm startCompile + Unit-Test the Distribution
watchnpm run watchUnit-Test Upon File-System Change(s)
buildnpm run buildCompile Distribution Upon File-System Change(s)
compilenpm run compileCompile Distribution
uploadnpm run uploadDeploy Package to NPM Registry

Development

Recommended - Testing Mode

Locally developing with jest file-watchers helps ensure non-breaking change are introduced.

  1. Install Dependencies
    npm install --quiet
  2. Build *.ts File(s), Enabling TSC File-Watching
    npm run build
  3. Open an Additional TTY and Run
    npm run start

Lastly, continue with development.

For alternative build & unit-testing commands, please refer to the commands list.

Common-JS

const Main = async () => {
    const { Parameter } = await import("@cloud-technology/parameter");

    const instance = new Parameter({
        organization: "IBM",
        environment: "Development",
        application: "Storage-Store",
        service: "Authorization-Service",
        identifier: "Credentials"
    });

    console.log(instance);

    console.log(instance.string());

    console.log(instance.string("Directory"));
    console.log(instance.string("Train-Case"));
    console.log(instance.string("Screaming-Train-Case"));
}

( async () => await Main() )();

Modules

import { Parameter } from "@cloud-technology/parameter";

const instance = new Parameter({
    organization: "IBM",
    environment: "Development",
    application: "Storage-Store",
    service: "Authorization-Service",
    identifier: "Credentials"
});

console.log(instance);
console.log(instance.string());

console.log(instance.string("Directory"));
console.log(instance.string("Train-Case"));
console.log(instance.string("Screaming-Train-Case"));

Documentation

Please see documentation for additional information and reference(s).

0.7.141

2 years ago

0.7.142

2 years ago

0.7.139

2 years ago

0.7.138

2 years ago

0.7.137

2 years ago

0.6.136

2 years ago

0.6.135

2 years ago

0.5.131

2 years ago

0.5.129

2 years ago

0.5.128

2 years ago

0.5.127

2 years ago

0.5.126

2 years ago

0.4.125

2 years ago

0.4.124

2 years ago

0.4.123

2 years ago

0.4.122

2 years ago

0.4.119

2 years ago

0.4.118

2 years ago

0.4.117

2 years ago

0.4.116

2 years ago

0.4.115

2 years ago

0.4.114

2 years ago

0.4.113

2 years ago

0.4.112

2 years ago

0.4.109

2 years ago

0.4.108

2 years ago

0.4.107

2 years ago

0.4.106

2 years ago

0.4.105

2 years ago

0.4.104

2 years ago

0.4.103

2 years ago

0.4.101

2 years ago

0.4.98

2 years ago

0.4.97

2 years ago

0.4.96

2 years ago

0.4.95

2 years ago

0.4.94

2 years ago

0.4.93

2 years ago

0.4.92

2 years ago

0.4.91

2 years ago

0.4.89

2 years ago

0.4.88

2 years ago

0.4.86

2 years ago

0.4.85

2 years ago

0.4.84

2 years ago

0.4.83

2 years ago

0.4.82

2 years ago

0.4.81

2 years ago

0.3.79

2 years ago

0.3.78

2 years ago

0.3.77

2 years ago

0.3.76

2 years ago

0.3.75

2 years ago

0.3.74

2 years ago

0.3.73

2 years ago

0.3.72

2 years ago

0.3.71

2 years ago

0.3.69

2 years ago

0.3.68

2 years ago

0.3.67

2 years ago

0.3.66

2 years ago

0.3.65

2 years ago

0.3.64

2 years ago

0.3.63

2 years ago

0.3.61

2 years ago

0.3.59

2 years ago

0.3.58

2 years ago

0.3.57

2 years ago

0.3.56

2 years ago

0.3.55

2 years ago

0.3.54

2 years ago

0.3.51

2 years ago

0.3.50

2 years ago

0.3.49

2 years ago

0.3.48

2 years ago

0.3.46

2 years ago

0.3.45

2 years ago

0.3.44

2 years ago

0.3.43

2 years ago

0.3.42

2 years ago

0.3.41

2 years ago

0.3.39

2 years ago

0.2.38

2 years ago

0.2.37

2 years ago

0.2.36

2 years ago

0.2.34

2 years ago

0.2.32

2 years ago

0.2.31

2 years ago

0.2.30

2 years ago

0.2.29

2 years ago

0.2.27

2 years ago

0.2.26

2 years ago

0.2.24

2 years ago

0.2.23

2 years ago

0.2.22

2 years ago

0.2.21

2 years ago

0.2.20

2 years ago

0.2.19

2 years ago

0.2.18

2 years ago

0.2.17

2 years ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.1.1

2 years ago