{"_id":"mixto","_rev":"246706","name":"mixto","description":"A mixin superclass. Its subclasses have `.extend` and `.includeInto` methods to mix behavior into other objects and classes.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"benogle","email":"ogle.ben@gmail.com"},{"name":"nathansobo","email":"nathan@github.com"}],"time":{"modified":"2021-06-03T16:04:33.000Z","created":"2013-10-09T16:03:04.273Z","1.0.0":"2014-01-16T23:38:11.406Z","0.4.0":"2014-01-03T21:46:49.200Z","0.3.0":"2013-11-12T04:22:25.337Z","0.2.0":"2013-11-08T02:02:17.130Z","0.1.0":"2013-10-09T16:03:04.273Z"},"users":{},"author":{"name":"Nathan Sobo"},"repository":{"type":"git","url":"https://github.com/atom/mixto"},"versions":{"1.0.0":{"name":"mixto","version":"1.0.0","description":"A mixin superclass. Its subclasses have `.extend` and `.includeInto` methods to mix behavior into other objects and classes.","main":"lib/mixin","scripts":{"prepublish":"grunt clean coffee lint","test":"grunt test"},"repository":{"type":"git","url":"https://github.com/atom/mixto"},"keywords":["mixin","trait"],"bugs":{"url":"https://github.com/atom/mixto/issues"},"licenses":[{"type":"MIT","url":"http://github.com/atom/mixto/raw/master/LICENSE.md"}],"devDependencies":{"coffee-script":"~1.6.3","jasmine-focused":"~0.19.0","grunt-contrib-coffee":"~0.7.0","grunt-cli":"~0.1.8","grunt":"~0.4.1","grunt-shell":"~0.2.2","grunt-coffeelint":"0.0.6","rimraf":"~2.2.2"},"author":{"name":"Nathan Sobo"},"readmeFilename":"README.md","_id":"mixto@1.0.0","dist":{"shasum":"c320ef61b52f2898f522e17d8bbc6d506d8425b6","size":2040,"noattachment":false,"key":"/mixto/-/mixto-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mixto/download/mixto-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"kevinsawicki","email":"kevinsawicki@gmail.com"},"maintainers":[{"name":"benogle","email":"ogle.ben@gmail.com"},{"name":"nathansobo","email":"nathan@github.com"}],"directories":{},"publish_time":1389915491406,"_cnpm_publish_time":1389915491406,"_hasShrinkwrap":false},"0.4.0":{"name":"mixto","version":"0.4.0","description":"A mixin superclass. Its subclasses have `.extend` and `.includeInto` methods to mix behavior into other objects and classes.","main":"lib/mixin","scripts":{"prepublish":"grunt clean lint coffee","test":"grunt test"},"repository":{"type":"git","url":"https://github.com/atom/mixto"},"keywords":["mixin","trait"],"bugs":{"url":"https://github.com/atom/mixto/issues"},"licenses":[{"type":"MIT","url":"http://github.com/atom/mixto/raw/master/LICENSE.md"}],"devDependencies":{"coffee-script":"~1.6.3","jasmine-focused":"~0.12.0","jasmine-waits-for-callback":"~0.1.0","grunt-contrib-coffee":"~0.7.0","grunt-cli":"~0.1.8","grunt":"~0.4.1","grunt-shell":"~0.2.2","grunt-coffeelint":"0.0.6","rimraf":"~2.2.2"},"author":{"name":"Nathan Sobo"},"license":"BSD-2-Clause","readmeFilename":"README.md","homepage":"https://github.com/atom/mixto","_id":"mixto@0.4.0","dist":{"shasum":"a54ddcb83087c0a35f8291b29517441727fee445","size":2067,"noattachment":false,"key":"/mixto/-/mixto-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mixto/download/mixto-0.4.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"nathansobo","email":"nathansobo@gmail.com"},"maintainers":[{"name":"benogle","email":"ogle.ben@gmail.com"},{"name":"nathansobo","email":"nathan@github.com"}],"directories":{},"publish_time":1388785609200,"_cnpm_publish_time":1388785609200,"_hasShrinkwrap":false},"0.3.0":{"name":"mixto","version":"0.3.0","description":"A mixin superclass. Its subclasses have `.extend` and `.includeInto` methods to mix behavior into other objects and classes.","main":"lib/mixin","scripts":{"prepublish":"grunt clean lint coffee","test":"grunt test"},"repository":{"type":"git","url":"https://github.com/atom/mixto"},"keywords":["mixin","trait"],"bugs":{"url":"https://github.com/atom/mixto/issues"},"licenses":[{"type":"MIT","url":"http://github.com/atom/mixto/raw/master/LICENSE.md"}],"devDependencies":{"coffee-script":"~1.6.3","jasmine-focused":"~0.12.0","jasmine-waits-for-callback":"~0.1.0","grunt-contrib-coffee":"~0.7.0","grunt-cli":"~0.1.8","grunt":"~0.4.1","grunt-shell":"~0.2.2","grunt-coffeelint":"0.0.6","rimraf":"~2.2.2"},"author":{"name":"Nathan Sobo"},"license":"BSD-2-Clause","readmeFilename":"README.md","_id":"mixto@0.3.0","dist":{"shasum":"9f4e6410352a3a67d30c1643042950ad7ce3226b","size":2037,"noattachment":false,"key":"/mixto/-/mixto-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mixto/download/mixto-0.3.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"nathansobo","email":"nathansobo@gmail.com"},"maintainers":[{"name":"benogle","email":"ogle.ben@gmail.com"},{"name":"nathansobo","email":"nathan@github.com"}],"directories":{},"publish_time":1384230145337,"_cnpm_publish_time":1384230145337,"_hasShrinkwrap":false},"0.2.0":{"name":"mixto","version":"0.2.0","description":"A mixin superclass. Its subclasses have `.extend` and `.includeInto` methods to mix behavior into other objects and classes.","main":"lib/mixin","scripts":{"prepublish":"grunt clean lint coffee","test":"grunt test"},"repository":{"type":"git","url":"https://github.com/atom/mixto"},"keywords":["mixin","trait"],"bugs":{"url":"https://github.com/atom/mixto/issues"},"licenses":[{"type":"MIT","url":"http://github.com/atom/mixto/raw/master/LICENSE.md"}],"devDependencies":{"coffee-script":"~1.6.3","jasmine-focused":"~0.12.0","jasmine-waits-for-callback":"~0.1.0","grunt-contrib-coffee":"~0.7.0","grunt-cli":"~0.1.8","grunt":"~0.4.1","grunt-shell":"~0.2.2","grunt-coffeelint":"0.0.6","rimraf":"~2.2.2"},"author":{"name":"Nathan Sobo"},"license":"BSD-2-Clause","readmeFilename":"README.md","_id":"mixto@0.2.0","dist":{"shasum":"479babc453295ce1cf0f7b2bb54cc000939cb722","size":2032,"noattachment":false,"key":"/mixto/-/mixto-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mixto/download/mixto-0.2.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"nathansobo","email":"nathansobo@gmail.com"},"maintainers":[{"name":"benogle","email":"ogle.ben@gmail.com"},{"name":"nathansobo","email":"nathan@github.com"}],"directories":{},"publish_time":1383876137130,"_cnpm_publish_time":1383876137130,"_hasShrinkwrap":false},"0.1.0":{"name":"mixto","version":"0.1.0","description":"A mixin superclass. Its subclasses have `.extend` and `.includeInto` methods to mix behavior into other objects and classes.","main":"lib/mixin","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/atom/mixto"},"keywords":["mixin","trait"],"bugs":{"url":"https://github.com/atom/mixto/issues"},"licenses":[{"type":"MIT","url":"http://github.com/atom/mixto/raw/master/LICENSE.md"}],"devDependencies":{"coffee-script":"~1.6.3","jasmine-focused":"~0.12.0","jasmine-waits-for-callback":"~0.1.0","grunt-contrib-coffee":"~0.7.0","grunt-cli":"~0.1.8","grunt":"~0.4.1","grunt-shell":"~0.2.2","grunt-coffeelint":"0.0.6","rimraf":"~2.2.2"},"author":{"name":"Nathan Sobo"},"license":"BSD-2-Clause","readmeFilename":"README.md","_id":"mixto@0.1.0","dist":{"shasum":"e57755228e3a234bb49abbb7ecc973da4c7b5861","size":1963,"noattachment":false,"key":"/mixto/-/mixto-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mixto/download/mixto-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"nathansobo","email":"nathansobo@gmail.com"},"maintainers":[{"name":"benogle","email":"ogle.ben@gmail.com"},{"name":"nathansobo","email":"nathan@github.com"}],"directories":{},"publish_time":1381334584273,"_cnpm_publish_time":1381334584273,"_hasShrinkwrap":false}},"readme":"# Mixto: A simple mixin superclass [![Build Status](https://travis-ci.org/atom/mixto.png?branch=master)](https://travis-ci.org/atom/mixto)\n\nTo create a mixin, subclass mixto:\n\n```coffee\nMixin = require 'mixto'\n\nclass MyMixin extends Mixin\n  @classMethod: -> console.log(\"foo\")\n  instanceMethod: -> console.log(\"bar\")\n```\n\nThen mix into classes with `.includeInto`:\n\n```coffee\nclass MyClass\n  MyMixin.includeInto(this)\n  \nMyClass.classMethod()\n(new MyClass).instanceMethod()\n```\n\nOr extend individual objects with `.extend`:\n\n```coffee-script\nmyObject = {a: 1, b: 2}\nMyMixin.extend(myObject)\nmyObject.instanceMethod()\n```\n\nOr build standalone instances of your 'mixin':\n\n```\nstandalone = new MyMixin\nstandalone.instanceMethod()\n```\n","_attachments":{},"readmeFilename":"README.md","bugs":{"url":"https://github.com/atom/mixto/issues"}}