Skip to content

cpuabuse/chirpchirp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chirpchirp

Twitter cli via app authentication.

About

Straightforward way of sending tweets, supporting multiline messages. Written natively in TypeScript.

Prerequisites

Installation

npm install chirpchirp --global

Usage

  1. Create a twitter app and generate keys
  2. Set the environmental variables
    export TWITTER_API_KEY="TWITTER_API_KEY"
    export TWITTER_API_SECRET_KEY="TWITTER_API_SECRET_KEY"
    export TWITTER_ACCESS_TOKEN="TWITTER_ACCESS_TOKEN"
    export TWITTER_ACCESS_TOKEN_SECRET="TWITTER_ACCESS_TOKEN_SECRET"
  3. Tweet
    chirpchirp send --message <message>

Example

chirpchirp send --message "Hello, World!"

Advanced usage

Command Explanation
chirpchirp send --message <message> --twitter-api-key "TWITTER_API_KEY" --twitter-api-secret-key "TWITTER_API_SECRET_KEY" --twitter-access-token "TWITTER_ACCESS_TOKEN" --twitter-access-token-secret "TWITTER_ACCESS_TOKEN_SECRET" Instead of using the environmental variables
npx chirpchirp send --message <message> Running without installation
chirpchirp --help To get all the available options

Multiline messages for nonglobal installation

$Message = "Beavers
Squirrels
Bears"

node node_modules/chirpchirp/build/release/index.js send --message $Message

Spaces and multiline support

+ : Working

= : Non applicable

! : Spaces work, multiline doesn't (workaround above)

- : Not working (workaround above)

Command used Global Local Not installed
chirpchirp + = =
chirpchirp (from script) ! ! =
npx chirpchirp - - !
npx chirpchirp (from script) - - !
node index.js + + =

About

Twitter cli via app auth

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published