{"id":15771704,"url":"https://github.com/trstringer/tweetify","last_synced_at":"2025-03-31T12:10:56.806Z","repository":{"id":57382618,"uuid":"44781707","full_name":"trstringer/tweetify","owner":"trstringer","description":":bird: Node.js module that formats text to tweet","archived":false,"fork":false,"pushed_at":"2015-12-30T00:10:22.000Z","size":0,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T00:36:25.494Z","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/trstringer.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":"2015-10-23T00:41:59.000Z","updated_at":"2017-02-14T07:21:37.000Z","dependencies_parsed_at":"2022-09-01T04:01:52.069Z","dependency_job_id":null,"html_url":"https://github.com/trstringer/tweetify","commit_stats":null,"previous_names":["tstringer/tweetify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Ftweetify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Ftweetify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Ftweetify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Ftweetify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trstringer","download_url":"https://codeload.github.com/trstringer/tweetify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246465228,"owners_count":20781919,"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-10-04T15:04:33.819Z","updated_at":"2025-03-31T12:10:56.782Z","avatar_url":"https://github.com/trstringer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tweetify\r\n\r\n*The tweet-formatting module to make it easy*\r\n\r\n## Install\r\n\r\n```\r\nnpm install tweetify\r\n```\r\n\r\n## Usage\r\n\r\n```javascript\r\nvar tweetify = require('tweetify');\r\n\r\nvar tweet = {\r\n    text: 'this is my really long tweet that i want the ENTIRE world to read no matter what if you know what i mean and i think you know exactly what i mean every single time',\r\n    //\r\n    // (optional) allows you to specify\r\n    // how the tweet should be prefixed. i.e. if you want \r\n    // '{Blog Post}: ' in front of your tweet, the below \r\n    // spec will give you that\r\n    prefix: {\r\n        container: 'curley-brackets', // or 'brackets' for []\r\n        text: 'Blog Post',\r\n        divider: ': ' // other example... ' - ', ' :: ', etc.\r\n    },\r\n    //\r\n    // (optional)\r\n    hashtags: ['javascript', 'node'], // don't need a prefixing '#'\r\n    //\r\n    // (optional) if you only want a single tweet (truncated if too many \r\n    // chars) then either don't defined 'wrap' or set it to \r\n    // false. but if you want all of the text to be tweeted \r\n    // then set 'wrap' to true and overflow text will be broken \r\n    // into multiple tweets\r\n    wrap: true,\r\n    //\r\n    // (optional) if you want to add a link to the tweet then specify \r\n    // it here. you can also opt to have it wrap to all wrapped \r\n    // tweets. if wrap is undefined or false then the link will only \r\n    // be displayed for the first tweet\r\n    link: {\r\n        url: '\u003cyour_url\u003e',\r\n        wrap: true // optional, defaults to false\r\n    }\r\n};\r\n\r\nvar tweets = tweetify(tweet);\r\n\r\nfor (var i = 0; i \u003c tweets.length; i++) {\r\n    console.log(tweets[i]);\r\n}\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrstringer%2Ftweetify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrstringer%2Ftweetify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrstringer%2Ftweetify/lists"}