0.0.6 • Published 4 years ago

chirpchirp v0.0.6

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

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

CommandExplanation
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 --helpTo 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 usedGlobalLocalNot installed
chirpchirp+==
chirpchirp (from script)!!=
npx chirpchirp--!
npx chirpchirp (from script)--!
node index.js++=
0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago