{"id":21214510,"url":"https://github.com/slice/fling","last_synced_at":"2026-04-11T08:39:45.219Z","repository":{"id":83250302,"uuid":"110295974","full_name":"slice/fling","owner":"slice","description":"Yet another @whats-this client in JavaScript. Tiny (almost only 40 lines total).","archived":false,"fork":false,"pushed_at":"2017-11-19T00:19:36.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T16:24:07.727Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/slice.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-10T21:50:54.000Z","updated_at":"2017-11-10T21:57:02.000Z","dependencies_parsed_at":"2023-03-12T17:44:58.450Z","dependency_job_id":null,"html_url":"https://github.com/slice/fling","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slice%2Ffling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slice%2Ffling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slice%2Ffling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slice%2Ffling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slice","download_url":"https://codeload.github.com/slice/fling/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243663740,"owners_count":20327339,"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":[],"created_at":"2024-11-20T21:28:14.174Z","updated_at":"2025-12-30T11:41:17.256Z","avatar_url":"https://github.com/slice.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fling\n\nAnother tiny client for [@whats-this](https://whats-th.is/).\n\n## install\n\n```sh\n~\u003e npm i slice/fling\n~\u003e yarn add slice/fling\n```\n\n## use\n\n```js\nconst fling = require('fling');\n\nconst options = {\n  token: 'XXXX-XXXX-XXXX-XXXX-XXXX'\n};\n\n// ①: Usage with a file on disk\nfling('my_file.txt', options)\n  .then(r =\u003e console.log(r.files[0].url)) // -\u003e xxxxxx.txt\n  .catch(err =\u003e ...);\n\n// ②: Usage with a buffer\nconst buffer = getABufferSomehow();\nfling(buffer, options)\n  .then(...)\n  .catch(...);\n\n// ③: Usage in an `AsyncFunction`\nconst task = async () =\u003e {\n  await fling(..., options);\n};\n```\n\n## cli\n\nA tiny CLI tool is provided for convenience. Place your token in a file at\n`~/.config/owo-token` (no JSON or anything, **just** the token in the file).\n\n```sh\n~\u003e fling file.txt\nhttps://owo.whats-th.is/xxxxxx.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslice%2Ffling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslice%2Ffling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslice%2Ffling/lists"}