2.1.0 • Published 3 years ago

@jspy-code/metacls v2.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@jspy-code/metacls


export one thing

the metacls


example to use this package

let metacls = require('@jspy-code/metacls')

class test extends metacls {
	constructor() {
		return super("xxx", test, { x: 1 })
	}

	get() {
		console.log("get")
	}
}

console.log(test)

let cls = new test()
console.log(cls)

console.log(cls.x)
cls.get()

output:

[class test extends metacls]
xxx {}
1
get
2.0.2

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0-rc3

3 years ago

1.0.0-rc2

3 years ago

1.0.0-rc1

3 years ago

1.0.0

3 years ago