Skip to content

banahaker/jsdef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSDef

A Define tool for js/ts

Install

npm i jsdefn

HOW TO

  1. Create Defs
import { JSDef } from 'jsdefn'
const $ = JSDef({
    "A": "apple"
})
  1. Get define
console.log($.JD("A"))

it's will out put apple in console

define function

There are three way to define

  1. constructor
// define when create defs
const $ = JSDef({
    "B": "Banana"
})
  1. define once
$.def("M", "mongo")
  1. define many in one time
$.defMany({
    "author": "lazp",
    "time": "2022"
})

License

MIT

Releases

No releases published

Packages

No packages published