{"id":13634731,"url":"https://github.com/trekjs/captcha","last_synced_at":"2025-05-16T15:07:48.608Z","repository":{"id":50639464,"uuid":"81030492","full_name":"trekjs/captcha","owner":"trekjs","description":"A Lightweight Pure JavaScript Captcha for Node.js. No C/C++, No ImageMagick, No Canvas.","archived":false,"fork":false,"pushed_at":"2024-03-31T10:05:14.000Z","size":137,"stargazers_count":468,"open_issues_count":6,"forks_count":47,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-15T20:26:27.651Z","etag":null,"topics":["captcha","pure-javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trekjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-05T23:43:07.000Z","updated_at":"2025-04-14T03:54:53.000Z","dependencies_parsed_at":"2024-06-18T14:42:05.184Z","dependency_job_id":null,"html_url":"https://github.com/trekjs/captcha","commit_stats":{"total_commits":32,"total_committers":3,"mean_commits":"10.666666666666666","dds":0.09375,"last_synced_commit":"5d31312bbcf0d96ad4d73266bd242c64202a9911"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trekjs%2Fcaptcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trekjs%2Fcaptcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trekjs%2Fcaptcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trekjs%2Fcaptcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trekjs","download_url":"https://codeload.github.com/trekjs/captcha/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254553958,"owners_count":22090417,"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":["captcha","pure-javascript"],"created_at":"2024-08-02T00:00:32.015Z","updated_at":"2025-05-16T15:07:43.598Z","avatar_url":"https://github.com/trekjs.png","language":"JavaScript","readme":"# captcha\n\nA Lightweight Pure JavaScript Captcha for Node.js. No C/C++, No ImageMagick, No canvas. Inspired By [rucaptcha](https://github.com/huacnlee/rucaptcha).\n\n\n## Installation\n\n```\n$ npm install trek-captcha --save\n```\n\n\n## Examples\n\n```js\n'use strict'\n\nconst fs = require('fs')\nconst captcha = require('trek-captcha')\n\nasync function run() {\n  const { token, buffer } = await captcha()\n\n  // console.log(token, buffer)\n\n  fs.createWriteStream('a.gif').on('finish', () =\u003e console.log(token)).end(buffer)\n}\n\nrun()\n```\n\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/22151425/e02390c8-df58-11e6-974d-5eb9b1a4e577.gif\" width=\"150px\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/22151427/e4939d92-df58-11e6-9754-4a46a86acea8.gif\" width=\"150px\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/22151431/e494576e-df58-11e6-9845-a5590904c175.gif\" width=\"150px\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/22151432/e495066e-df58-11e6-92b8-38b40b73aba0.gif\" width=\"150px\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/22151428/e49404ee-df58-11e6-8e2d-8b17b33a3710.gif\" width=\"150px\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/22151430/e4942406-df58-11e6-9ff8-6e2325304b41.gif\" width=\"150px\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/22151429/e4941ae2-df58-11e6-8107-757296573b2f.gif\" width=\"150px\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/22151433/e4c7c89c-df58-11e6-9853-1ffbb4986962.gif\" width=\"150px\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/22151435/e4c97ea8-df58-11e6-8959-b4c78716271d.gif\" width=\"150px\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/22151436/e4cc09f2-df58-11e6-965c-673333b33c0d.gif\" width=\"150px\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/22151434/e4c87788-df58-11e6-9490-c255aaafce71.gif\" width=\"150px\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/22151445/ee35ff66-df58-11e6-8660-a3673ef3f5ee.gif\" width=\"150px\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/22151446/ee67b074-df58-11e6-9b95-7d53eec21c33.gif\" width=\"150px\" /\u003e\n\n## API\n\n`captcha({ size: 5, style: -1 })`\n\n* **size**:   Defaults to 5.\n* **style**: Defaults to -1 with random.\n\n```js\n// returns\n{\n  token,\n  buffer\n}\n```\n\n\n## Badges\n\n[![Linux](https://travis-ci.org/trekjs/captcha.svg?branch=master)](https://travis-ci.org/trekjs/captcha)\n[![Windows](https://img.shields.io/appveyor/ci/fundon/captcha/master.svg?label=windows)](https://ci.appveyor.com/project/fundon/captcha)\n[![codecov](https://codecov.io/gh/trekjs/captcha/branch/master/graph/badge.svg)](https://codecov.io/gh/trekjs/captcha)\n![](https://img.shields.io/badge/license-MIT-blue.svg)\n\n---\n\n\u003e [fundon.me](https://fundon.me) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e GitHub [@fundon](https://github.com/fundon) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e Twitter [@_fundon](https://twitter.com/_fundon)\n","funding_links":[],"categories":["Biblioteki","JavaScript","graphic (图形库)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrekjs%2Fcaptcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrekjs%2Fcaptcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrekjs%2Fcaptcha/lists"}