{"id":18338712,"url":"https://github.com/tableflip/twitter-screen-name","last_synced_at":"2025-08-08T01:05:11.354Z","repository":{"id":57382920,"uuid":"52084626","full_name":"tableflip/twitter-screen-name","owner":"tableflip","description":"Extract a twitter screen name from a twitter URL or `@username` string. Return `null` if not valid.","archived":false,"fork":false,"pushed_at":"2016-02-19T12:06:25.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-24T01:43:32.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tableflip.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":"2016-02-19T11:54:55.000Z","updated_at":"2016-02-19T11:56:45.000Z","dependencies_parsed_at":"2022-09-11T04:10:36.708Z","dependency_job_id":null,"html_url":"https://github.com/tableflip/twitter-screen-name","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tableflip/twitter-screen-name","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Ftwitter-screen-name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Ftwitter-screen-name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Ftwitter-screen-name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Ftwitter-screen-name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tableflip","download_url":"https://codeload.github.com/tableflip/twitter-screen-name/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Ftwitter-screen-name/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269348242,"owners_count":24401917,"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-07T02:00:09.698Z","response_time":73,"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-05T20:14:55.898Z","updated_at":"2025-08-08T01:05:11.326Z","avatar_url":"https://github.com/tableflip.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twitter-screen-name [![Build Status](https://travis-ci.org/tableflip/twitter-screen-name.svg?branch=master)](https://travis-ci.org/tableflip/twitter-screen-name) [![Dependency Status](https://david-dm.org/tableflip/twitter-screen-name.svg)](https://david-dm.org/tableflip/twitter-screen-name)\nExtract a twitter screen name from a twitter URL or `@username` string. Return `null` if not valid.\n\n## Example\n\n```js\nvar twitterScreenName = require('twitter-screen-name')\n\ntwitterScreenName('http://twitter.com/_alanshaw') // -\u003e _alanshaw\ntwitterScreenName('https://www.twitter.com/_alanshaw') // -\u003e _alanshaw\ntwitterScreenName('http://twitter.com/_alanshaw/status/695527644901801984') // -\u003e _alanshaw\ntwitterScreenName('@_alanshaw') // -\u003e _alanshaw\ntwitterScreenName('_alanshaw') // -\u003e _alanshaw\n// etc.\n\ntwitterScreenName('http://example.org/foo/') // -\u003e null\ntwitterScreenName('toolongfortwitter') // -\u003e null\n// etc.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftableflip%2Ftwitter-screen-name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftableflip%2Ftwitter-screen-name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftableflip%2Ftwitter-screen-name/lists"}