chirpchirp
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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 + + =

Dependents (0)

Package Sidebar

Install

npm i chirpchirp

Weekly Downloads

0

Version

0.0.6

License

ISC

Unpacked Size

7.99 kB

Total Files

8

Last publish

Collaborators

  • badelgatobot
  • winterhotlatte
  • yanocv
  • elgatobot