https://github.com/zetlen/hugtight
CLI for devs to turn twitter app/dev tokens into user tokens
https://github.com/zetlen/hugtight
Last synced: over 1 year ago
JSON representation
CLI for devs to turn twitter app/dev tokens into user tokens
- Host: GitHub
- URL: https://github.com/zetlen/hugtight
- Owner: zetlen
- Created: 2021-10-11T19:45:09.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-16T14:26:18.000Z (over 4 years ago)
- Last Synced: 2025-02-13T23:47:27.391Z (over 1 year ago)
- Language: JavaScript
- Size: 60.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hugtight
**CLI for devs to turn twitter app/dev tokens into user tokens**

> Mr Twit was good at catching birds. On the day before Bird Pie day, he would put the ladder up against The Big Dead Tree and climb into the branches with a bucket of glue and a paint-brush. The glue he used was something called HUGTIGHT and it was stickier than any other glue in the world.
## usage
```sh
TWITTER_API_KEY=xxxxxx \
TWITTER_API_SECRET=yyyyyyyyyy \
TWITTER_ACCESS_TOKEN=zzzzzzz \
TWITTER_ACCESS_TOKEN_SECRET=qqqqqqqqqq
npx hugtight
```
use the tokens from your twitter app and your developer account and it'll walk you through getting credentials for a different user. when it's done, it'll print them out as env vars for you to use in other commands, like:
```
TWITTER_ACCESS_TOKEN=hualgahualghuahg
TWITTER_ACCESS_TOKEN_SECRET=a8os7ydna8sd7ya9s8nyda8yn77o
```
### Notes
- Output to a file by redirecting stdout, e.g. `npx hugtight >> .env`. All the prompts and logging are on the stderr stream, so they won't output to the file; only the env vars themselves will.
- Uses `dotenv` to get env vars, so if you don't pass 'em at the command line, it will use the api keys and other env vars in an `.env` file in the working directory if one exists.