{"id":15697510,"url":"https://github.com/kt3k/52deco","last_synced_at":"2025-09-20T01:33:41.218Z","repository":{"id":57093165,"uuid":"124727644","full_name":"kt3k/52deco","owner":"kt3k","description":"Use decorator without transpilation","archived":false,"fork":false,"pushed_at":"2018-03-11T06:21:20.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T19:35:05.977Z","etag":null,"topics":["decorator","esnext","javascript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kt3k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-11T05:53:49.000Z","updated_at":"2025-02-20T17:11:03.000Z","dependencies_parsed_at":"2022-08-22T21:41:04.637Z","dependency_job_id":null,"html_url":"https://github.com/kt3k/52deco","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2F52deco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2F52deco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2F52deco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2F52deco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kt3k","download_url":"https://codeload.github.com/kt3k/52deco/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246326600,"owners_count":20759436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decorator","esnext","javascript"],"created_at":"2024-10-03T19:20:26.542Z","updated_at":"2025-09-20T01:33:36.102Z","avatar_url":"https://github.com/kt3k.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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\u003e 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkt3k%2F52deco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkt3k%2F52deco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkt3k%2F52deco/lists"}