{"id":18387824,"url":"https://github.com/dhowe/ritwit","last_synced_at":"2025-08-17T05:05:46.554Z","repository":{"id":43269342,"uuid":"249214589","full_name":"dhowe/ritwit","owner":"dhowe","description":"The RiTwit library for js","archived":false,"fork":false,"pushed_at":"2022-03-11T02:49:28.000Z","size":375,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T15:28:06.841Z","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/dhowe.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":"2020-03-22T15:37:57.000Z","updated_at":"2022-03-11T02:48:45.000Z","dependencies_parsed_at":"2022-09-03T02:31:04.193Z","dependency_job_id":null,"html_url":"https://github.com/dhowe/ritwit","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/dhowe/ritwit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhowe%2Fritwit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhowe%2Fritwit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhowe%2Fritwit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhowe%2Fritwit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhowe","download_url":"https://codeload.github.com/dhowe/ritwit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhowe%2Fritwit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270807934,"owners_count":24649346,"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":[],"created_at":"2024-11-06T01:28:09.182Z","updated_at":"2025-08-17T05:05:46.535Z","avatar_url":"https://github.com/dhowe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RiTwit\n\nA simple twitter client for node.js built atop [twit](https://www.npmjs.com/package/twit)\n\n## Installing\n\n```shell\nnpm install ritwit\n```\n\nTo use this package you will need to create a developer account on Twitter and obtain (4) keys for your config object, as shown below.\n\n\n## Usage\n\n```javascript\nlet RiTwit = require('ritwit');\n\nlet rt = new RiTwit({\n  consumer_key:         '...',\n  consumer_secret:      '...',\n  access_token:         '...',\n  access_token_secret:  '...',\n  verbose: true\n})\n\n\n//\n//  Tweet 'hello world'\n//\nrt.tweet('hello world');\n\n//\n//  Tweet 'hello world' with callback\n//  Note: all functions take optional callbacks as below\n//\nrt.tweet('hello world', function (err, data) {\n  console.log('done');\n});\n\n//\n//  Tweet an image\n//\nrt.tweetImage('img/mushroom.jpg');\n\n//\n//  Tweet an image plus text\n//\nrt.tweetImage('img/mushroom.jpg', 'mushrooms');\n\n//\n// Get a stream of tweets matching one or more keywords (comma-delimited)\n//\nrt.onTweetMatching('Climate', function(tweet) {\n    console.log(tweet);\n});\n\n//\n// Get a stream of tweets matching one or more user-ids (comma-delimited)\n//\nrt.onTweetMatching({ follow: '1241263348529807361,2855526444' }, function(tweet) {\n    console.log(tweet);\n});\n\n//\n// Get a stream of tweets for one or more locations (comma-delimited)\n//\nrt.onTweetMatching({ locations: '-74,40,-73,41' }, function (tweet) {\n    console.log(tweet);          // new york\n});\n\n//\n// Get a stream of tweets for a keyword, language and location\n//\nrt.onTweetMatching({ track: 'climate', language: 'en', locations: '-74,40,-73,41' }, function (tweet) {\n   console.log(tweet);\n});\n\n//\n//  Find a user by Twitter id\n//\nrt.userById('1241263348529807361', function (err, user) {\n    console.log(user);\n});\n\n//\n//  Find a user by screen-name\n//\nrt.userByName('utensilbot', function (err, user) {\n    console.log(user);\n});\n\n//\n// Tweet text overlayed on an image\n//\nrt.tweetTextOverImage('img/mushroom.jpg', 'Humanity', {\n    font: '80px Futura', opacity: 0.8, yOffset: 60\n});\n\n//\n// Tweet text overlayed on an image, plus text\n//\nrt.tweetTextOverImage('img/mushroom.jpg', 'Humanity', {\n    font: '80px Futura', opacity: 0.8, yOffset: 60, tweetText: 'Check it!'\n});\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhowe%2Fritwit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhowe%2Fritwit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhowe%2Fritwit/lists"}