{"id":14984990,"url":"https://github.com/philnash/pirate-api","last_synced_at":"2026-01-19T02:33:17.801Z","repository":{"id":58693611,"uuid":"532879918","full_name":"philnash/pirate-api","owner":"philnash","description":"🏴‍☠️ An API wrapper for translating from English to Pirate and generating pirate insults ☠️","archived":false,"fork":false,"pushed_at":"2022-09-06T13:52:01.000Z","size":15,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-24T15:23:18.638Z","etag":null,"topics":["deno","nodejs","pirate","pirates"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/philnash.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"philnash"}},"created_at":"2022-09-05T11:56:50.000Z","updated_at":"2022-09-06T13:47:34.000Z","dependencies_parsed_at":"2022-09-06T14:41:02.137Z","dependency_job_id":null,"html_url":"https://github.com/philnash/pirate-api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/philnash/pirate-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philnash%2Fpirate-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philnash%2Fpirate-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philnash%2Fpirate-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philnash%2Fpirate-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philnash","download_url":"https://codeload.github.com/philnash/pirate-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philnash%2Fpirate-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28558236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T00:46:33.223Z","status":"online","status_checked_at":"2026-01-19T02:00:08.049Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["deno","nodejs","pirate","pirates"],"created_at":"2024-09-24T14:10:03.340Z","updated_at":"2026-01-19T02:33:17.786Z","avatar_url":"https://github.com/philnash.png","language":"TypeScript","funding_links":["https://github.com/sponsors/philnash"],"categories":[],"sub_categories":[],"readme":"# 🏴‍☠️ Pirate API ☠️\n\n[![deno](https://shield.deno.dev/x/pirate_api)](https://deno.land/x/pirate_api)\n[![npm](https://img.shields.io/npm/v/pirate-api)](https://www.npmjs.com/package/pirate-api)\n[![tests](https://github.com/philnash/pirate-api/actions/workflows/test.yml/badge.svg)](https://github.com/philnash/pirate-api/actions/workflows/test.yml)\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)\n\nThe [Pirate Monkeyness API](https://pirate.monkeyness.com/api.html) can generate\n**pirate insults** and it can **translate from English to Pirate**.\n\nThis is a Deno wrapper for the API that is available as both a\n[Deno module](https://deno.land/x/pirate_api) and a\n[Node.js module on npm](https://www.npmjs.com/package/pirate-api).\n\n- [Usage](#usage)\n  - [Deno](#deno)\n  - [Node.js](#nodejs)\n- [Thanks](#thanks)\n- [What's a pirate's favourite programming language?](#whats-a-pirates-favourite-programming-language)\n\n## Usage\n\nThe Pirate Monkeyness API makes available two APIs; one that creates a pirate\ninsult and one that takes English text as an argument and returns a pirate\ntranslation of that text.\n\n### Deno\n\n```typescript\nimport { insult, translate } from \"https://deno.land/x/pirate_api/mod.ts\";\n\nconsole.log(await insult());\n// =\u003e \"I'll gut ye bow to stern, ye dreadful, cowardly mongrel! ... Blow me down!\"\n\nconsole.log(\n  await translate(\"Let's take to the seas for an adventure captain.\"),\n);\n// =\u003e \"Let's take t' the seas fer an adventure cap'n.\"\n```\n\n### Node.js\n\nTo use the module in a Node.js application, first install the module with:\n\n```\nnpm install pirate-api\n```\n\nYou can then use the module in your application like this:\n\n```js\nimport { insult, translate } from \"pirate-api\";\n\nconsole.log(await insult());\n// =\u003e \"Yer face be good fer stoppin' cannonballs, ye scrappy, salty dullard! ... Blow me down!\"\n\nconsole.log(\n  await translate(\"Let's take to the seas for an adventure captain.\"),\n);\n// =\u003e \"Let's take t' the seas fer an adventure cap'n.\"\n```\n\nYou can also use this module as a Common JS require:\n\n```js\nconst { insult, translate } = require(\"pirate-api\");\n\nconsole.log(await insult());\n// =\u003e \"It's the locker for ye, ye pitiful, weak-kneed swab! ... Splice the mainbrace!\"\n\nconsole.log(\n  await translate(\"JavaScript is a very versatile language, don't you think?\"),\n);\n// =\u003e \"JavaScript be a mighty versatile language, don't ye reckon?\"\n```\n\n## Thanks\n\nThanks very much to [Tim Moses](https://tim.moses.com/) the creator of the\n[Pirate Monkeyness API](https://pirate.monkeyness.com/api.html). It is a free\nservice and it makes me very happy that it exists.\n\n## What's a pirate's favourite programming language?\n\n\u003e Ye might reckon a pirate's fav'rit programmin' language be R, but his first\n\u003e love be the C!\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilnash%2Fpirate-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilnash%2Fpirate-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilnash%2Fpirate-api/lists"}