static-type

1.0.11 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i static-type

Weekly Downloads

0

Version

1.0.11

License

ISC

Unpacked Size

1.89 kB

Total Files

3

Last publish

Collaborators

  • aryarte