xprezzo-mixin

1.1.2 • Public • Published

xprezzo-mixin

An implementation of setting the prototype of an instianted object.

usage

$ npm install --save xprezzo-mixin
const mixin = require('xprezzo-mixin')

let obj = {}
mixin(obj, {
  foo: function () {
    return 'bar'
  }
})
obj.foo() // bar

People

Xprezzo and related projects are maintained by Cloudgen Wong.

License

MIT

Versions

Current Tags

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

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.2
    2
  • 1.1.1
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i xprezzo-mixin

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

2.79 kB

Total Files

5

Last publish

Collaborators

  • xprezzo