1.0.11 • Published 2 years ago

static-type v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

STATIC-TYPE

static-type is a library for make a static variable

Installation

npm i static-type

Usage

const {Static,S} = require("static-type")

//to make new static variable
//Static($varibleName,$Data,$typeData)

Static("name","jhon","string")
Static("count",12,"number")
Static("status",true,"boolean")

//acces the variable has been created

let data = S.name.v
console.log(data)// jhon

//to change value

Static("name","jhonson")
data = S.name.v
console.log(data)// jhonson

//to get error you can use errLog
const {errLog} = require("static-type")

console.log(errLog)//print all error
1.0.11

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago