{"_id":"uptown","_rev":"12-a37ba0b6ed222669c4e2ce7da6d65626","name":"uptown","description":"Simple ways to extend prototypes","dist-tags":{"latest":"1.1.0"},"versions":{"0.1.0":{"name":"uptown","version":"0.1.0","description":"Simple ways to extend prototypes","main":"lib/uptown.js","scripts":{"test":"mocha --recursive"},"keywords":["ES6","class","extend","getters","setters","inherit"],"author":{"name":"Stephen Mizell"},"license":"MIT","devDependencies":{"chai":"^3.0.0","mocha":"^2.2.5"},"dependencies":{"lodash":"^3.9.3"},"gitHead":"a42de88479b71af073d162339ab24c29b6d1b53f","_id":"uptown@0.1.0","_shasum":"970ade7591c409af82e80a1cc991e271080bc94d","_from":".","_npmVersion":"2.7.3","_nodeVersion":"0.10.37","_npmUser":{"name":"smizell","email":"smizell@gmail.com"},"maintainers":[{"name":"smizell","email":"smizell@gmail.com"}],"dist":{"shasum":"970ade7591c409af82e80a1cc991e271080bc94d","tarball":"https://registry.npmjs.org/uptown/-/uptown-0.1.0.tgz","integrity":"sha512-zjLKKVeOxBIUcapgbPzHEQvVa9jWNwwCww+VG5X11650Xz1suXW+RyauqrC1URghzqbZesrVKQjUNS9A4ocvww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGGYLXFVqtxR98jRvnGa6gcvdRfnqUpoQCLDY7Ed+UMxAiBQlRxzZOgb2htW7sRCWwq6wv5eSmEKf672wmeOZqVhmA=="}]},"directories":{}},"0.1.1":{"name":"uptown","version":"0.1.1","description":"Simple ways to extend prototypes","main":"lib/uptown.js","scripts":{"test":"mocha --recursive"},"keywords":["ES6","class","extend","getters","setters","inherit"],"author":{"name":"Stephen Mizell"},"homepage":"https://github.com/smizell/uptown","license":"MIT","devDependencies":{"chai":"^3.0.0","mocha":"^2.2.5"},"dependencies":{"lodash":"^3.9.3"},"repository":{"type":"git","url":"https://github.com/smizell/uptown.git"},"gitHead":"913087dfbbcea18b81061cc47178d37cf4fda2b2","bugs":{"url":"https://github.com/smizell/uptown/issues"},"_id":"uptown@0.1.1","_shasum":"561a0f5c77f5ffb39e914150185d04c10364734b","_from":".","_npmVersion":"2.7.3","_nodeVersion":"0.10.37","_npmUser":{"name":"smizell","email":"smizell@gmail.com"},"maintainers":[{"name":"smizell","email":"smizell@gmail.com"}],"dist":{"shasum":"561a0f5c77f5ffb39e914150185d04c10364734b","tarball":"https://registry.npmjs.org/uptown/-/uptown-0.1.1.tgz","integrity":"sha512-SUKo2yoC3gb2p+JUaPPuLGCeonQ//PgO1qfap8GJo7Ux9pJzSc16j3ZOwro7GnN2zmX3LyQ4o9anBFCP4V+PrA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHCaHTH/m2/fu+QGScRnEHYQfEY4XgzPiDIDZZPEEo8eAiAvD3F07fnuCaeDvTfuFk0nfrWNe0BdaX8RKOe7IKL8/Q=="}]},"directories":{}},"0.2.0":{"name":"uptown","version":"0.2.0","description":"Simple ways to extend prototypes","main":"lib/uptown.js","scripts":{"test":"mocha --recursive"},"keywords":["ES6","class","extend","getters","setters","inherit"],"author":{"name":"Stephen Mizell"},"homepage":"https://github.com/smizell/uptown","license":"MIT","devDependencies":{"chai":"^3.0.0","mocha":"^2.2.5"},"dependencies":{"lodash":"^3.9.3"},"repository":{"type":"git","url":"https://github.com/smizell/uptown.git"},"gitHead":"80ee7c2cf7337757621973facd2ce409d1ffe5ba","bugs":{"url":"https://github.com/smizell/uptown/issues"},"_id":"uptown@0.2.0","_shasum":"a4bacdfdbbec812a2a73ecd41f8fbb3a004b1d44","_from":".","_npmVersion":"2.7.3","_nodeVersion":"0.10.37","_npmUser":{"name":"smizell","email":"smizell@gmail.com"},"maintainers":[{"name":"smizell","email":"smizell@gmail.com"}],"dist":{"shasum":"a4bacdfdbbec812a2a73ecd41f8fbb3a004b1d44","tarball":"https://registry.npmjs.org/uptown/-/uptown-0.2.0.tgz","integrity":"sha512-X0ihiP/lOlkmBnYUI4I3nRKt+T0xgeR6IQsE5i9eUoq/AnXBauqUd70SXUiY2S1RVZrWyf2n3gUnBiR/MU739g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAe5/9mDTT9e7lleRcTtfN4IItJ8vbDPB3Z1hlfIRsJmAiA2/O00LZXo5fp1UNwSS/BvhAIY51GFkn/Fnj/hJufYsQ=="}]},"directories":{}},"0.3.0":{"name":"uptown","version":"0.3.0","description":"Simple ways to extend prototypes","main":"lib/uptown.js","scripts":{"test":"mocha --recursive"},"keywords":["ES6","class","extend","getters","setters","inherit"],"author":{"name":"Stephen Mizell"},"homepage":"https://github.com/smizell/uptown","license":"MIT","devDependencies":{"chai":"^3.0.0","mocha":"^2.2.5"},"dependencies":{"lodash":"^3.9.3"},"repository":{"type":"git","url":"https://github.com/smizell/uptown.git"},"gitHead":"1b2a7ec3c44a6d78cf76107299db1e341eb03ced","bugs":{"url":"https://github.com/smizell/uptown/issues"},"_id":"uptown@0.3.0","_shasum":"abe420a804d9608da1ce1a877575d9e86f877642","_from":".","_npmVersion":"2.7.3","_nodeVersion":"0.10.37","_npmUser":{"name":"smizell","email":"smizell@gmail.com"},"maintainers":[{"name":"smizell","email":"smizell@gmail.com"}],"dist":{"shasum":"abe420a804d9608da1ce1a877575d9e86f877642","tarball":"https://registry.npmjs.org/uptown/-/uptown-0.3.0.tgz","integrity":"sha512-fUFtWVDmWJ4DD1Cr62iG44QI7duqw8Ny96SGS+H7u+IkC8TunBP5fa4AF7a0o76l+g4ERfF4zQ73X+XhjwGC4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFa7CyT0zuOdOAfU+sLhuQvTXCVNsDMm6xQgcln3w0DHAiEAxp0UJAagNQGrIO9AsLmgrIEjqybf6Iu0aoRSfCmoouw="}]},"directories":{}},"0.4.0":{"name":"uptown","version":"0.4.0","description":"Simple ways to extend prototypes","main":"lib/uptown.js","scripts":{"test":"mocha --recursive"},"keywords":["ES6","class","extend","getters","setters","inherit"],"author":{"name":"Stephen Mizell"},"homepage":"https://github.com/smizell/uptown","license":"MIT","devDependencies":{"chai":"^3.0.0","mocha":"^2.2.5"},"dependencies":{"lodash":"^3.9.3"},"repository":{"type":"git","url":"https://github.com/smizell/uptown.git"},"gitHead":"530224f3216c9713baace931d5154d8f7faba54d","bugs":{"url":"https://github.com/smizell/uptown/issues"},"_id":"uptown@0.4.0","_shasum":"b794f0aa6ea576e0479caf2e949e32ba21e67155","_from":".","_npmVersion":"2.7.3","_nodeVersion":"0.10.37","_npmUser":{"name":"smizell","email":"smizell@gmail.com"},"maintainers":[{"name":"smizell","email":"smizell@gmail.com"}],"dist":{"shasum":"b794f0aa6ea576e0479caf2e949e32ba21e67155","tarball":"https://registry.npmjs.org/uptown/-/uptown-0.4.0.tgz","integrity":"sha512-J70EWrnO5yqOscWj79rgUxcqrv12HdpSvHPY5w5IS/MNCvh3AlvjBO/zXUst9NB2kTndz8XNzsX9T1tYBK9LWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCw95HnQbtLr6DSesmft1oovTjKzdYHwQ14aixmkgx9jwIgarrgUQO/mDYAGznVEm+13Vr0s8bqZuYEYe/tt0AxB0o="}]},"directories":{}},"0.4.1":{"name":"uptown","version":"0.4.1","description":"Simple ways to extend prototypes","main":"lib/uptown.js","scripts":{"test":"mocha --recursive"},"keywords":["ES6","class","extend","getters","setters","inherit"],"author":{"name":"Stephen Mizell"},"homepage":"https://github.com/smizell/uptown","license":"MIT","devDependencies":{"chai":"^3.0.0","mocha":"^2.2.5"},"dependencies":{"lodash":"^4.14.2"},"repository":{"type":"git","url":"git+https://github.com/smizell/uptown.git"},"gitHead":"4a5e8112807f51dcbe62fc726cd5598ad64ffe73","bugs":{"url":"https://github.com/smizell/uptown/issues"},"_id":"uptown@0.4.1","_shasum":"2aa732b75c05c34432373498e2b419fbd9cd5452","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"smizell","email":"smizell@gmail.com"},"dist":{"shasum":"2aa732b75c05c34432373498e2b419fbd9cd5452","tarball":"https://registry.npmjs.org/uptown/-/uptown-0.4.1.tgz","integrity":"sha512-jQHB7Wf6ssgj8I5OzwD4FXpWLxfxFocbCntENse/wu+o/kJvxb2bEiXrX4udTdxplqw7L6uwPTzq8P3QZ6UE9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDZCsyz7szdahkqcLY9a3EYCO5sP7OMu8XOhKEWjbTd7AiANUqI8RtpP53wJDtBtizyTdXLMtDVMo4IpBplx2IAI6w=="}]},"maintainers":[{"name":"smizell","email":"smizell@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/uptown-0.4.1.tgz_1471266552124_0.9789753232616931"},"directories":{}},"1.0.0":{"name":"uptown","version":"1.0.0","description":"Simple ways to extend prototypes","main":"lib/uptown.js","scripts":{"prepare":"npm run build","build":"npm run build:full && npm run build:min","build:full":"browserify -d -s uptown -x lodash -o dist/uptown.js lib/uptown.js","build:min":"browserify -d -s uptown lib/uptown.js | uglifyjs > dist/uptown.min.js","test":"mocha --recursive"},"keywords":["ES6","class","extend","getters","setters","inherit"],"author":{"name":"Stephen Mizell"},"homepage":"https://github.com/smizell/uptown","license":"MIT","devDependencies":{"browserify":"^14.5.0","chai":"^3.0.0","mocha":"^2.2.5","uglify-js":"^3.2.2"},"dependencies":{"lodash":"^4.14.2"},"repository":{"type":"git","url":"git+https://github.com/smizell/uptown.git"},"gitHead":"a3c96fdb9041a14dc1583270d533e0ba6db54768","bugs":{"url":"https://github.com/smizell/uptown/issues"},"_id":"uptown@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.8.0","_npmUser":{"name":"smizell","email":"smizell@gmail.com"},"dist":{"integrity":"sha512-qWyG0OiucA33nPbMPfw3L5Nun8RPM0hL+kgSzO/irVkDzrh9jifZWjQjCZXNQeucsuXWISVzsEJrnbzdnhvjaQ==","shasum":"47bd87e3ad189e6b535407d6750218e5c1f8fb29","tarball":"https://registry.npmjs.org/uptown/-/uptown-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPytodkTjUeVpaHVzRjUO9tiw6CrHWsEAgXeDUfMM/pgIgCVSysKY3bDIiZr5mXYOZKIsRil7/Lp+5JznBMbJosOM="}]},"maintainers":[{"name":"smizell","email":"smizell@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uptown-1.0.0.tgz_1514912962876_0.2232701692264527"},"directories":{}},"1.0.1":{"name":"uptown","version":"1.0.1","description":"Simple ways to extend prototypes","main":"lib/uptown.js","scripts":{"prepare":"npm run build","build":"npm run build:full && npm run build:min","build:full":"browserify -d -s uptown -x lodash -o dist/uptown.js lib/uptown.js","build:min":"browserify -d -s uptown lib/uptown.js | uglifyjs > dist/uptown.min.js","test":"mocha --recursive"},"keywords":["ES6","class","extend","getters","setters","inherit"],"author":{"name":"Stephen Mizell"},"homepage":"https://github.com/smizell/uptown","license":"MIT","files":["dist/uptown.js","dist/uptown.min.js"],"devDependencies":{"browserify":"^14.5.0","chai":"^3.0.0","mocha":"^2.2.5","uglify-js":"^3.2.2"},"dependencies":{"lodash":"^4.14.2"},"repository":{"type":"git","url":"git+https://github.com/smizell/uptown.git"},"gitHead":"83fbe57d51a3b943425ecf3265e37ee5307d8129","bugs":{"url":"https://github.com/smizell/uptown/issues"},"_id":"uptown@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.8.0","_npmUser":{"name":"smizell","email":"smizell@gmail.com"},"dist":{"integrity":"sha512-Ft4xdRpyPoY9zDQ3gwG64AyF4jXgB4M64Pgtj4gYF5GKJh5bMSeEL6vQ/nlqlreHv6pF8l+5DuoKuZebvRhHtw==","shasum":"a384c9ec24e16fdcdefe7cd9de89a6efb8345693","tarball":"https://registry.npmjs.org/uptown/-/uptown-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEKeRtfNybyh7eKwL70z13oeU4omqeYiGkPSwtzYuJbNAiEA1gRxjzwnLEOnbaIDuxOjmROMbU/YnpuYz+zx3s9jmy0="}]},"maintainers":[{"name":"smizell","email":"smizell@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uptown-1.0.1.tgz_1515032306056_0.9936143215745687"},"directories":{}},"1.1.0":{"name":"uptown","version":"1.1.0","description":"Simple ways to extend prototypes","main":"lib/uptown.js","scripts":{"prepare":"npm run build","build":"npm run build:full && npm run build:min","build:full":"browserify -d -s uptown -o dist/uptown.js lib/uptown.js","build:min":"cat dist/uptown.js | uglifyjs > dist/uptown.min.js","test":"mocha --recursive"},"keywords":["ES6","class","extend","getters","setters","inherit"],"author":{"name":"Stephen Mizell"},"homepage":"https://github.com/smizell/uptown","license":"MIT","devDependencies":{"browserify":"^14.5.0","chai":"^3.0.0","mocha":"^2.2.5","uglify-js":"^3.2.2"},"dependencies":{"lodash":"^4.14.2"},"repository":{"type":"git","url":"git+https://github.com/smizell/uptown.git"},"gitHead":"2fc1af0d3b7736fdc99fc980b34469f0ee598d31","bugs":{"url":"https://github.com/smizell/uptown/issues"},"_id":"uptown@1.1.0","_npmVersion":"5.10.0","_nodeVersion":"8.4.0","_npmUser":{"name":"kylef","email":"kyle@fuller.li"},"dist":{"integrity":"sha512-8CVRVG6jNECwHMVl/i4AjmRemtNp/JwQVENdj6DLWXCk0agxY2sBNXqGEyIRhr22fLPj1AD98TK+88i+U1JsWA==","shasum":"e3a4a91e52188ab7f6b8c35bde181bd4cb3759b7","tarball":"https://registry.npmjs.org/uptown/-/uptown-1.1.0.tgz","fileCount":6,"unpackedSize":239535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbm9Y6CRA9TVsSAnZWagAAot0QAI9vqbGzuHhe86fvgBOd\nda00P3gXItY6iQmHcIjCHWI2tN8Z9T1XV4oNQjG9tNdy2ZQFxDXSVZAjCRHO\ndhOjnfGkBGDZVvwSXJ3ml1dCF2bkpEtzdGp6uZ9/eMabZdqjANuFkjcyX1Qi\nPl5zSGY+F/YmYMdqe5fIGosj4cvz+njxvwxN89Qm07ko5Plx/xWtD1Tf8K8W\nGDoJAF/lXotCaj+W3E5vZtAadNloy8ORndGUgMBWQ/+L+mGE6WCG5L3uC7Aj\n9vp3cSBX44895WCqCmJn3guWlTIJ7h2Fg1AjMFQWZBDRHs/8DefKuWIrZ3YP\nuYPDlL6ByDWauafdFHc1wha+Osg8nIyIlz+BbONVJ2mLoLKQuU04B8HhTX2O\ndPvVqUUIaGEYLIB2qC/QhPD8CSDBF288n0Rkcc5GEM0nkr3H4BDmiXTcwU8m\nQYlfjSXi9XmKfjGWhpKhizVJvjI1oFLECSF3+/SicKwllMn0Dt6EwJ1Ynm+f\n941C9soOg9KTB5qG5FK0T0EH2IB9cCw+1mTGDinqni8fO7wDMoLneWnlAwxD\nzZS1TVIqx1dah1mMBv2OYSQCERh/XM+MPeO7tnX0uZIswhpgkLT85lcbK2f8\n7EK/QLoS0NBS6VNJubuve9PysQteBuBz9/PuSvwQcbfKNd/X3EY4kNLCqgvw\nKyIa\r\n=svYt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGKD4GXMOQh1g7A0EkiRRgjHm0yetdpSU6zb8lK1f24MAiBJHynUcUeg9v+lZeMyNLk84qwEi3RF62h2oouN6dN9ug=="}]},"maintainers":[{"name":"smizell","email":"smizell@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uptown_1.1.0_1536939577430_0.6062638820139825"},"_hasShrinkwrap":false}},"readme":"# Uptown\n\n[![Build Status](https://travis-ci.org/smizell/uptown.svg?branch=master)](https://travis-ci.org/smizell/uptown)\n\nSimplify prototypical inheritance. This tries to provide some simple constructs for providing functionality you get with ES6 classes, such as:\n\n* Constructor functions\n* Static class methods\n* Getter and setter methods\n\n## Install\n\nUsing npm:\n\n```sh\nnpm install uptown --save\n```\n\nUsing cdn:\n\n```html\n<script src=\"https://unpkg.com/uptown/dist/uptown.min.js\"></script>\n```\n\n- `dist/uptown.js` contains uptown and requires lodash to be loaded separately. Can be used with requirejs.\n- `dist/uptown.min.js` contains minified uptown and dependencies (lodash).\n\n## Usage\n\nUse `extendify` to add the extend method to a class (**note**: it mutates the original class).\n\nThe `extend` class method takes three options arguments:\n\n1. Object of instance properties\n1. Object of static methods and properties\n1. Object of getter and setter mutators\n\n```js\nvar extendify = require('uptown').extendify;\n\nvar Original = function() {};\n\nOriginal.prototype.hello = function(value) {\n  return 'Hello, ' + value;\n}\n\nextendify(Original);\n\nvar SubClass = Original.extend({\n  // Specify a constructor for the new class\n  constructor: function() {\n    // Call parent constructor\n    Original.apply(this, arguments);\n  },\n\n  hello: function(value) {\n    // Add exclamation point\n    return Original.prototype.hello.call(this, value + '!')\n  }\n}, {\n  // Specify static methods and properties\n  staticMethod: function() {}\n}, {\n  // Specify getters and setters for the new class\n  foo: {\n    get: function() {},\n    set: function() {}\n  }\n});\n```\n\nNew classes may also be created using the `createClass` function. The `createClass` function works just like `.extend`.\n\n```js\nvar createClass = require('uptown').createClass;\n\nvar Foo = createClass({\n  constructor: function() {\n    this.foo = 'bar';\n  }\n});\n```\n","maintainers":[{"name":"smizell","email":"smizell@gmail.com"}],"time":{"modified":"2022-06-28T06:01:09.953Z","created":"2015-06-06T14:03:14.003Z","0.1.0":"2015-06-06T14:03:14.003Z","0.1.1":"2015-06-06T14:06:12.389Z","0.2.0":"2015-06-06T17:55:44.894Z","0.3.0":"2015-06-06T23:23:45.052Z","0.4.0":"2015-06-22T22:37:43.185Z","0.4.1":"2016-08-15T13:09:14.059Z","1.0.0":"2018-01-02T17:09:23.811Z","1.0.1":"2018-01-04T02:18:27.122Z","1.1.0":"2018-09-14T15:39:37.562Z"},"keywords":["ES6","class","extend","getters","setters","inherit"],"author":{"name":"Stephen Mizell"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/smizell/uptown","repository":{"type":"git","url":"git+https://github.com/smizell/uptown.git"},"bugs":{"url":"https://github.com/smizell/uptown/issues"}}