How to use the twitter-text.configs function in twitter-text

To help you get started, we’ve selected a few twitter-text examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vanita5 / birdknife / src / libs / delimiter.js View on Github external
setDefaultDelimiter(ui, explicit) {
        if (explicit) ui.delimiter(`${PREFIX_EXPLICIT} [${twitter.configs.defaults.maxWeightedTweetLength}]> `);
        else ui.delimiter(`${PREFIX} [---]> `);
    }
github vanita5 / birdknife / src / libs / text.js View on Github external
static getRemainingTweetLength(status) {
        return twitter.configs.defaults.maxWeightedTweetLength -
            BirdknifeText.getTweetLength(status);
    }