{"id":21473191,"url":"https://github.com/johan-perso/moreshort","last_synced_at":"2025-08-17T13:36:00.487Z","repository":{"id":217015097,"uuid":"742958050","full_name":"johan-perso/moreshort","owner":"johan-perso","description":"A simple URL shortener module, using multiple services to shorten URLs","archived":false,"fork":false,"pushed_at":"2025-06-04T21:01:14.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-17T13:35:59.868Z","etag":null,"topics":["isgd","link-shortener","shortener","shorturl","trim","url-shortener","vgd"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/moreshort","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/johan-perso.png","metadata":{"files":{"readme":"README.fr.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,"zenodo":null}},"created_at":"2024-01-13T21:47:56.000Z","updated_at":"2025-06-04T21:01:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"c69af707-65c1-4797-a739-889be4b41f29","html_url":"https://github.com/johan-perso/moreshort","commit_stats":null,"previous_names":["johan-perso/moreshort"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/johan-perso/moreshort","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johan-perso%2Fmoreshort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johan-perso%2Fmoreshort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johan-perso%2Fmoreshort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johan-perso%2Fmoreshort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johan-perso","download_url":"https://codeload.github.com/johan-perso/moreshort/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johan-perso%2Fmoreshort/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270856563,"owners_count":24657688,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"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":["isgd","link-shortener","shortener","shorturl","trim","url-shortener","vgd"],"created_at":"2024-11-23T10:15:16.089Z","updated_at":"2025-08-17T13:36:00.425Z","avatar_url":"https://github.com/johan-perso.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"###### English version [here](https://github.com/johan-perso/moreshort/blob/main/README.md).\n\n# MoreShort\n\nUne librairie capable de raccourcir des liens via une simple fonction, en utilisant de multiples services possédant des noms de domaines courts.\n\n\n## Domaines/services supportés\n\n| [rfrr.fr](https://unshort.johanstick.fr)             | [llui.site](https://unshort.johanstick.fr)      |\n|------------------------------------------------------|-------------------------------------------------|\n| [is.gd](https://is.gd)                               | [v.gd](https://v.gd)                            |\n| [s.oriondev.fr](https://quecto.oriondev.fr)          | [liba.ro](https://liba.ro)                      |\n| [s.3vm.cl](https://unshort.johanstick.fr)            | [s.erc.hr](https://unshort.johanstick.fr)       |\n| [s.585.eu](https://unshort.johanstick.fr)            | [s.jib.ar](https://unshort.johanstick.fr)       |\n| [s.ahpc.fi](https://unshort.johanstick.fr)           | [s.acme.si](https://unshort.johanstick.fr)      |\n| [s.coute.au](https://unshort.johanstick.fr)          | [s.fronturi.ro](https://unshort.johanstick.fr)  |\n| [shor.vercel.app](https://unshort.johanstick.fr)     |                                                 | \n\n\n## Installation\n\n### NodeJS\n\n\u003e Aucun support n'est garanti pour les anciennes versions de NodeJS.\n\n```bash\n# Avec npm\nnpm i moreshort\n\n# Ou avec pnpm\npnpm i moreshort\n```\n\n```js\nconst moreshort = require('moreshort')\n\nconsole.log(moreshort) // Retourne des informations sur la librairie\nconsole.log(await moreshort.short('https://google.com')) // Retourne un lien raccourci\n```\n\n### Navigateur\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/moreshort/dist/browser.js\"\u003e\u003c/script\u003e\n```\n\n```js\nconsole.log(moreshort) // Retourne des informations sur la librairie\nconsole.log(await moreshort.short('https://google.com')) // Retourne un lien raccourci\n```\n\n\u003e Dans le navigateur, vous pouvez utiliser la fonction `short` directement, sans avoir à utiliser `moreshort.short`.\n\n\n## Utilisation de la méthode principale\n\nLa fonction principale dispose de 3 arguments :\n\n* `url` : L'URL à raccourcir *(string)*\n* `provider` : Nom de domaine du service à utiliser *(string)*\n* \u003e Vous pouvez obtenir la liste des services disponibles avec `moreshort.servicesDomains`\n* `options` :\n\t* `shortcode` : Code court à utiliser *(string)*\n\t* \u003e Sera présent dans l'URL raccourci, après le slash *(ex: https://is.gd/shortcode)*\n\t* \u003e Seuls certains services supportent cette fonctionnalité, `moreshort.servicesInfos` dispose d'une propriété booléenne `shortcode` pour chaque service\n\t* `replaceWhenErrors` : Remplace automatiquement le service utilisé par un autre en cas d'erreur *(bool)*\n\n**Exemple :**\n\n```js\nconst moreshort = require('moreshort')\n\nconsole.log(await moreshort.short('https://google.com')) // Raccourci avec un service aléatoire\nconsole.log(await moreshort.short('https://google.com', 'is.gd')) // Raccourci avec le service is.gd\nconsole.log(await moreshort.short('https://google.com', 'is.gd', { shortcode: 'google' })) // Raccourci avec le service is.gd et le code court \"google\"\n```\n\n\n## Licence\n\nMIT © [Johan](https://johanstick.fr). [Soutenez ce projet](https://johanstick.fr/#donate) si vous souhaitez m'aider 💙","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohan-perso%2Fmoreshort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohan-perso%2Fmoreshort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohan-perso%2Fmoreshort/lists"}