js-class-extender

0.0.1 • Public • Published

How to use

const { extend } = require("extender")
const Class = require("somewherethathasclasses")
const newClass = extend(Class, { newThing: "yes", newThing1: "yes1" })({ thing: 1 } /*options for the old class*/)

And new class will come out as:

{
	oldthing: "oldthing",
    secondoldthing: "oldthing2",
    newThing: "yes",
    newThing1: "yes1"
}

Readme

Keywords

Package Sidebar

Install

npm i js-class-extender

Weekly Downloads

2

Version

0.0.1

License

ISC

Unpacked Size

1.09 kB

Total Files

3

Last publish

Collaborators

  • xcheez