{"_id":"52deco","_rev":"3-241065169e590085715ed0d34dd8b284","name":"52deco","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"52deco","version":"1.0.0","description":"Use decorator without transpilation","main":"index.js","devDependencies":{"codecov":"^3.0.0","kocha":"^1.9.1","nyc":"^11.4.1","standard":"^11.0.0"},"scripts":{"test":"kocha test.js","lint":"standard","codecov":"nyc npm test && codecov"},"repository":{"type":"git","url":"git+https://github.com/kt3k/52deco.git"},"keywords":["decorators","decorator","esnext"],"author":{"name":"Yoshiya Hinosawa"},"license":"MIT","bugs":{"url":"https://github.com/kt3k/52deco/issues"},"homepage":"https://github.com/kt3k/52deco#readme","gitHead":"c9b528faa8aaf0c934efda7150015cd0fb2227ea","_id":"52deco@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kt3k","email":"stibium121@gmail.com"},"dist":{"integrity":"sha512-hrfv8i8DBwj5yLpxMzd6fnsjqu6VJIrpdGG8hiEtWzP8l60lLGIf+FF/UOz3P2yAi8GyuGp3VXo+xh1AsaIV6Q==","shasum":"2649f9b34bf32f22c6379672eabfec54cb84fb73","tarball":"https://registry.npmjs.org/52deco/-/52deco-1.0.0.tgz","fileCount":8,"unpackedSize":105244,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHn3rz3/mL1raux1yHfbcNNY5y61+elRT34h9X31/thXAiA0lHby6bw6CZswheS5dXnlt9WT4CCbwQztl1tBnthDXQ=="}]},"maintainers":[{"name":"kt3k","email":"stibium121@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/52deco_1.0.0_1520748884295_0.37518560328137474"},"_hasShrinkwrap":false},"1.0.1":{"name":"52deco","version":"1.0.1","description":"Use decorator without transpilation","main":"index.js","devDependencies":{"codecov":"^3.0.0","kocha":"^1.9.1","nyc":"^11.4.1","standard":"^11.0.0"},"scripts":{"test":"kocha test.js","lint":"standard","codecov":"nyc npm test && codecov"},"repository":{"type":"git","url":"git+https://github.com/kt3k/52deco.git"},"keywords":["decorators","decorator","esnext"],"author":{"name":"Yoshiya Hinosawa"},"license":"MIT","bugs":{"url":"https://github.com/kt3k/52deco/issues"},"homepage":"https://github.com/kt3k/52deco#readme","nyc":{"reporter":["text","lcov"]},"gitHead":"6b0eb5c47e2f0bc624174172d9f5f834058e7628","_id":"52deco@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kt3k","email":"stibium121@gmail.com"},"dist":{"integrity":"sha512-UNtbz7msOUoovdisLYTrZzFOlVhJmQI/JGiJeNJGqO09WW+EEVJMTNVPuIF8EDGjxYGIjDZudSGITBsVGVQECQ==","shasum":"80b571fab3ed03f295c2e5e16f9e55c7cbc49610","tarball":"https://registry.npmjs.org/52deco/-/52deco-1.0.1.tgz","fileCount":8,"unpackedSize":105678,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcXXXgtF7ofmskwLWYy6Fe+hFCPVjYVw/XGeE5tZ6yAwIgV1K4aF7z9inf1YiMbV9zNjpe9afPkG8ZdWIJfoQHCaM="}]},"maintainers":[{"name":"kt3k","email":"stibium121@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/52deco_1.0.1_1520749266597_0.1900082445974125"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-11T06:14:44.295Z","1.0.0":"2018-03-11T06:14:44.376Z","modified":"2022-04-04T10:23:01.487Z","1.0.1":"2018-03-11T06:21:06.714Z"},"maintainers":[{"name":"kt3k","email":"stibium121@gmail.com"}],"description":"Use decorator without transpilation","homepage":"https://github.com/kt3k/52deco#readme","keywords":["decorators","decorator","esnext"],"repository":{"type":"git","url":"git+https://github.com/kt3k/52deco.git"},"author":{"name":"Yoshiya Hinosawa"},"bugs":{"url":"https://github.com/kt3k/52deco/issues"},"license":"MIT","readme":"# 52deco v1.0.1\n\n[![CircleCI](https://circleci.com/gh/kt3k/52deco.svg?style=svg)](https://circleci.com/gh/kt3k/52deco)\n[![codecov](https://codecov.io/gh/kt3k/52deco/branch/master/graph/badge.svg)](https://codecov.io/gh/kt3k/52deco)\n\n> Use decorator without transpilation\n\n52deco is a small utility for performing the same operation what ESNext decorators do. Decorators Proposal has been changing a lot and the only [babel transpilation][babel-plugin-transform-decorators-legacy] available today is outdated and not reliable. This tool supports using decorator with simple helper function.\n\n# :cd: Install\n\nVia npm:\n\n    npm install --save 52deco\n\n# :book: Usage\n\nIn case of method decorator:\n\n```js\nconst deco = requrie('52deco')\n\nclass Foo {\n  method () { ... }\n}\n\ndeco.method(decorator, Foo, 'method')\n```\n\nThe above is equivalent of:\n\n```js\nclass Foo {\n  @decorator\n  method () { ... }\n}\n```\n\nIn case of class decorator:\n\n```js\nconst deco = require('52deco')\n\nclass Foo {\n  ...\n}\n\ndeco.class(decorator, Foo)\n```\n\nThe above is equivalent of:\n\n```js\n@decorator\nclass Foo {\n  ...\n}\n```\n\n# Note\n\nThere is the babel transform [babel-plugin-transform-decorators-legacy][]. However that doesn't follow the current spec and not reliable.\n\n# Origin\n\nSee: https://splatoonwiki.org/wiki/.52_Gal_Deco\n\n# License\n\nMIT\n\n[babel-plugin-transform-decorators-legacy]: https://npm.im/babel-plugin-transform-decorators-legacy\n","readmeFilename":"README.md"}