Nutella Peanut-Butter Marshmallow

    @yarnaimo/twimo
    TypeScript icon, indicating that this package has built-in type declarations

    4.3.1 • Public • Published

    twimo

    Twitter library for TypeScript

    Install

    yarn add @yarnaimo/twimo
    # or
    npm i -S @yarnaimo/twimo

    Usage

    import { Twimo, twget, twpost } from '@yarnaimo/twimo'
    import { Status } from 'twitter-d'
    
    const twimo = Twimo({
        consumerKey: '***',
        consumerSecret: '***',
    })({
        token: '***',
        tokenSecret: '***',
    })
    
    const response = await twget<Status>(twimo, 'statuses/show', params)
    
    const response = await twpost<ResponseType>(twimo, path, params)

    Shorthands

    • twget
      • lookupTweets
      • searchTweets
      • getMutedIds
    • twpost
      • createTweet
      • postThread
      • retweet

    Example

    import { lookupTweets } from '@yarnaimo/twimo'
    
    const response = await lookupTweets(twimo, ['123', '456'])

    Utils

    • plusOne
    • minusOne
    • originalTweet
    • getMediaList
    • TweetURL
      • parse
      • fromTweet
    • UserPageURL
      • parse
      • fromUser

    Keywords

    none

    Install

    npm i @yarnaimo/twimo

    DownloadsWeekly Downloads

    16

    Version

    4.3.1

    License

    MIT

    Unpacked Size

    62.9 kB

    Total Files

    72

    Last publish

    Collaborators

    • yarnaimo