JSPM

tweetstorm

0.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q28821F
    • License MIT

    Convert a string into a properly formatted tweet storm. Convert an array of tweets back to the original tweet.

    Package Exports

    • tweetstorm

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tweetstorm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    TweetStorm

    Convert a string into a properly formatted tweet storm.

    Convert an array of tweets back to the original tweet.

    Install

    npm install tweetstorm

    Usage

    var tweetStorm = require('tweetstorm');
    var veryLongString = 'this is a very long string...'; // greater than 140 characters
    
    var storm = tweetStorm(veryLongString);
    // [ '1/ this is a very long string', '/2 ...long string ends here.' ]
    
    var originalTweet = tweetStorm(storm);
    // originalTweet === veryLongString

    License

    MIT © 2015 Ryan Seys