{"_id":"o-core","_rev":"38-915889a19d006e1acd87e3f9c9aa74be","name":"o-core","time":{"modified":"2022-06-22T15:06:01.623Z","created":"2014-09-02T10:11:50.989Z","0.0.0":"2014-09-02T10:11:54.353Z","0.0.1":"2014-09-02T10:38:22.639Z","0.0.2":"2014-09-10T09:44:14.023Z","0.0.3":"2014-09-30T13:56:54.010Z","0.0.4":"2014-09-30T14:10:17.661Z","0.0.5":"2014-10-07T15:37:30.425Z","0.2.0":"2016-03-24T17:57:06.128Z","0.2.1":"2016-06-07T17:28:39.973Z"},"maintainers":[{"name":"osher","email":"osher.filter@gmail.com"}],"description":"o-core - JavaScript core extensions that powers up JavaScript. Inspired by earlier versions of prototype.js - Intrusive by default, have fun and take care.","readme":"o-core [![Build Status](https://secure.travis-ci.org/osher/o-core.png?branch=master)](http://travis-ci.org/osher/o-core)\r\n======\r\n\r\nVery thin and lightweight utilities.\r\n\r\n```\r\no-core\r\n  √ should be a utility module object\r\n  API summary\r\n    √ o.extend(target, source, source, source...)\r\n    √ o.copy(source)\r\n    √ o.clone(source)\r\n    √ o.defaults(target, source, source, source...)\r\n    √ o.merge(target, source, source, source...)\r\n    √ o.closure(fHandler,args)\r\n    √ o.class(fConstructor) - a factory method for classes\r\n    √ o.IndexedArray(elementId) - a constructor\r\n    √ o.indexedArray(elementId) - a factory for the constructor (simply saves you using keyword new)\r\n    o.IBase interface\r\n      √ should be a mixin\r\n      √ .base(method, args)\r\n      √ .implements(methodSet, methodSet, methodSet...)\r\n\r\no.class(fConstructor)\r\n  when used with a constructor function\r\n    √ should return the provided constructor function\r\n    the provided function should be augmented with\r\n      √ .inherits(parentClass)\r\n      √ .implements(methodSet, methodSet, methodSet...)\r\n      √ .overrides(methodSet, methodSet, methodSet...)\r\n      √ .static(methodSet, methodSet, methodSet...)\r\n      √ .alias(aliasSet)\r\n  Using the API of an initiated class\r\n    .inherits\r\n      √ should connect inheritence to the provided parent class\r\n    .implements\r\n      √ should add all methods from all method sets to the prototype\r\n      √ when method set is a function - should execute it as a closure first\r\n    .overrides\r\n      √ should be asynonim for class.implements (different only semantically)\r\n    .alias\r\n      √ should create a synonim for every key name to the method named in the value\r\n    .static\r\n      - should add all methods from all method sets to the class as static method\r\n      - when methodset is a function - should execute it as a closure first\r\n    \r\n      \r\n```\r\n\r\n","versions":{"0.0.1":{"name":"o-core","version":"0.0.1","description":"o-core - JavaScript core extensions that powers up JavaScript. Inspired by earlier versions of prototype.js - Intrusive by default, take care.","main":"lib","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha-ui-exports":"~0.2.2","mocha":"~1.20.1"},"repository":{"type":"git","url":"git+https://github.com/osher/o-core.git"},"bugs":{"url":"https://github.com/osher/o-core/issues"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"license":"MIT","_id":"o-core@0.0.1","dist":{"shasum":"046a6a8c11e6fadeb00a84bb31dd490e03f34381","tarball":"https://registry.npmjs.org/o-core/-/o-core-0.0.1.tgz","integrity":"sha512-hRMgFPEIIj55hR4ynOXAeP3frZ5KKQmu0nA9ow/94XUSscUC21qYKQT/A/shVnISOgtLuLFc1i+igSFySJpK1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFLyMwDjbmv1R/mAoyQIfoNCK/kOxu9LAqy32R252wq2AiAgblFizLdxXeCiuQD86x9S1NYnx94ykY1uVBn/VizUrw=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"osher","email":"osher.filter@gmail.com"},"maintainers":[{"name":"osher","email":"osher.filter@gmail.com"}]},"0.0.2":{"name":"o-core","version":"0.0.2","description":"o-core - JavaScript core extensions that powers up JavaScript. Inspired by earlier versions of prototype.js - Intrusive by default, have fun and take care.","main":"lib","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"~1.20.1","mocha-ui-exports":"~0.2.2"},"repository":{"type":"git","url":"git+https://github.com/osher/o-core.git"},"bugs":{"url":"https://github.com/osher/o-core/issues"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"license":"MIT","_id":"o-core@0.0.2","dist":{"shasum":"3759847cd7b461f51e1156099ef828c9cb045db9","tarball":"https://registry.npmjs.org/o-core/-/o-core-0.0.2.tgz","integrity":"sha512-cnDNARxx/kHwi8sbIcyoOv3Q1GWlomn7TVjdnkSAT1i1evtnptNN3BXOw703+rUv1KmBNPz6XLPx9MKOPx2osQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOR06AzVlWYLgGdwy4ACxdnxHQOYsdFoxzJ9LobuWN9wIgIr5koPqFrqZI2Qp535bAUHZ9I1vypDmkyUoclFuNcK4="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"osher","email":"osher.filter@gmail.com"},"maintainers":[{"name":"osher","email":"osher.filter@gmail.com"}]},"0.0.3":{"name":"o-core","version":"0.0.3","description":"o-core - JavaScript core extensions that powers up JavaScript. Inspired by earlier versions of prototype.js - Intrusive by default, have fun and take care.","main":"lib","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"~1.20.1","mocha-ui-exports":"~0.2.2"},"repository":{"type":"git","url":"git+https://github.com/osher/o-core.git"},"bugs":{"url":"https://github.com/osher/o-core/issues"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"license":"MIT","_id":"o-core@0.0.3","dist":{"shasum":"d20077d276de7581598bb0c2b2149682779b309c","tarball":"https://registry.npmjs.org/o-core/-/o-core-0.0.3.tgz","integrity":"sha512-IQ9OPbzMDBblQNsX01PTk0Ijg0t1zg+AKJsMf6SD67KnDQNNNW5A37mZQb658jnrHptUp0ho/6Mi+reFX2yZRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBwbcpdcbzZU2Au5W/ig9rm3R7CqzPANpP2+9f18wJtnAiBJPqbyuGCu0pp14sW0XwEM+fYmXklalmNgPjw3HIi6Kw=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"osher","email":"osher.filter@gmail.com"},"maintainers":[{"name":"osher","email":"osher.filter@gmail.com"}]},"0.0.4":{"name":"o-core","version":"0.0.4","description":"o-core - JavaScript core extensions that powers up JavaScript. Inspired by earlier versions of prototype.js - Intrusive by default, have fun and take care.","main":"lib","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"~1.20.1","mocha-ui-exports":"~0.2.2"},"repository":{"type":"git","url":"git+https://github.com/osher/o-core.git"},"bugs":{"url":"https://github.com/osher/o-core/issues"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"license":"MIT","_id":"o-core@0.0.4","dist":{"shasum":"b81e7f09ac939e8f4e75fd8918e2a1ee286fc218","tarball":"https://registry.npmjs.org/o-core/-/o-core-0.0.4.tgz","integrity":"sha512-rZryImpAzBQ5pQQZ4bQOyKDbfnK2OTBl0jGb0+sHjSkSjAzJQC60OBGvKVh8gRRB7ufnH6j1QxC8Ppsw8QgLMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCul/gRRo1N3pU2stEPiDziXUARLMQl/V+ixGEv1+x//gIgKQiXdmGl+GRkMRYsMCHKDG4g79XLYismkyOnN+WJvXc="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"osher","email":"osher.filter@gmail.com"},"maintainers":[{"name":"osher","email":"osher.filter@gmail.com"}]},"0.0.5":{"name":"o-core","version":"0.0.5","description":"o-core - JavaScript core extensions that powers up JavaScript. Inspired by earlier versions of prototype.js - Intrusive by default, have fun and take care.","main":"lib","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"~1.20.1","mocha-ui-exports":"~0.2.2"},"repository":{"type":"git","url":"git+https://github.com/osher/o-core.git"},"bugs":{"url":"https://github.com/osher/o-core/issues"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"license":"MIT","_id":"o-core@0.0.5","dist":{"shasum":"1192135d245200d1b8915f98cc84998d73aeeb97","tarball":"https://registry.npmjs.org/o-core/-/o-core-0.0.5.tgz","integrity":"sha512-SSoVyiFa6luoDp4YyeQu/tA97GemnCICTGnuBvX71ru3bcB7D0cTS1H156gRrzhoJMPuAfvqJtZA/gbkzR466w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUaAPBP/Br8V7EbA1hIgdAzRoOMntGGSTBUBsWxE05LAIhAOtWhOwd1XwVM1d/LxveMdFt0KXmsuXsgTUO9GRe7g+n"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"osher","email":"osher.filter@gmail.com"},"maintainers":[{"name":"osher","email":"osher.filter@gmail.com"}]},"0.2.0":{"name":"o-core","version":"0.2.0","description":"o-core - JavaScript core extensions that powers up JavaScript. Inspired by earlier versions of prototype.js - Intrusive by default, have fun and take care.","main":"lib","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"~1.20.1","mocha-ui-exports":"~0.2.2"},"repository":{"type":"git","url":"git+https://github.com/osher/o-core.git"},"bugs":{"url":"https://github.com/osher/o-core/issues"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"license":"MIT","buildInfo":{"date":"2016-03-24T17:56:29.240Z","commit":{"hash":"eaa51018b2d1ea55933617a21d839fce0377b36d","author":"osher","date":"2016-03-24T17:55:04.000Z","comment":"add tests for o.class().static"}},"gitHead":"eaa51018b2d1ea55933617a21d839fce0377b36d","homepage":"https://github.com/osher/o-core","_id":"o-core@0.2.0","_shasum":"3ebaf2b419ecf84d215df2c84002943d51a0880f","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.9","_npmUser":{"name":"osher","email":"osher.filter@gmail.com"},"maintainers":[{"name":"osher","email":"osher.filter@gmail.com"}],"dist":{"shasum":"3ebaf2b419ecf84d215df2c84002943d51a0880f","tarball":"https://registry.npmjs.org/o-core/-/o-core-0.2.0.tgz","integrity":"sha512-5gG4V2fiT3Fh/MHd/QAB6Ai0IEhQ4x8UZJueMRnMhDD6djrPzKcb1a54d3VvFxYyULwnjOU8YNMbuE5BLz3yTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGVms+oRATEH21WxCVKgwPIMv8ULX6VkPL3IZFeRfrNpAiAqgxlfJwIviYkjkrlPM8Go56zYrEKUBnv6SUra9+vMBw=="}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/o-core-0.2.0.tgz_1458842223602_0.4633184040430933"}},"0.2.1":{"name":"o-core","version":"0.2.1","description":"o-core - JavaScript core extensions that powers up JavaScript. Inspired by earlier versions of prototype.js - Intrusive by default, have fun and take care.","main":"lib","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"~1.20.1","mocha-ui-exports":"~0.2.2"},"repository":{"type":"git","url":"git+https://github.com/osher/o-core.git"},"bugs":{"url":"https://github.com/osher/o-core/issues"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"license":"MIT","buildInfo":{"date":"2016-03-24T17:56:29.240Z","commit":{"hash":"eaa51018b2d1ea55933617a21d839fce0377b36d","author":"osher","date":"2016-03-24T17:55:04.000Z","comment":"add tests for o.class().static"}},"gitHead":"c279e0a0fa6f18043aecf233c0f5584857f43200","homepage":"https://github.com/osher/o-core","_id":"o-core@0.2.1","_shasum":"26e09988f2310da60d0a0cc70720d752b8de249c","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.9","_npmUser":{"name":"osher","email":"osher.filter@gmail.com"},"maintainers":[{"name":"osher","email":"osher.filter@gmail.com"}],"dist":{"shasum":"26e09988f2310da60d0a0cc70720d752b8de249c","tarball":"https://registry.npmjs.org/o-core/-/o-core-0.2.1.tgz","integrity":"sha512-ePolfxj9VdEZ1TXHTzt48WuPDhuQP3QDzQd2ZYw+oClsJfStVhi/eFw4jwIq3oc5Uzw1RWGcdc9/U2rD/pNbSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcsW8DxFuaaoYf1+e1BV0snl5Gd+1K+AL6R7F0b7FeyQIgbSiGHWBzmUD5OXb3GUIyUTwWr5Min5O/F/DkqBYLq6w="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/o-core-0.2.1.tgz_1465320517533_0.24120933818630874"}}},"dist-tags":{"latest":"0.2.1"},"readmeFilename":"README.md","repository":{"type":"git","url":"git+https://github.com/osher/o-core.git"},"bugs":{"url":"https://github.com/osher/o-core/issues"},"license":"MIT","homepage":"https://github.com/osher/o-core"}