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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.11
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.11
    2
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i static-type

Weekly Downloads

2

Version

1.0.11

License

ISC

Unpacked Size

1.89 kB

Total Files

3

Last publish

Collaborators

  • aryarte