Namely, Pickled Meatballs
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    ftwitterpublic

    Fake Twitter API for node.js

    Drop in replacement for ntwitter that supplies fake data without the need for an Internet connection or OAuth keys. Intended to replace ntwitter in situations where you may have patchy connectivity (conference wifi, while travelling etc.) or when you don't want to/can't get lots of Twitter OAuth keys (interactive demos etc.). Not intended as a full replacement for ntwitter or for generating realistic test data - just as a temporary replacement in the aforementioned scenarios.

    Installation

    Until I publish to npm, you'll just have to download the files and extract them to the node_modules dir of your project.

    Getting started

    I'm assuming assuming you already have an app that uses ntwitter. You can refer to ntwitter's readme for info on how to use it.

    Once ftwitter is installed, simply change

    require('ntwitter')
    

    to

    require('ftwitter')
    

    in your app. Hopefully everything should work as it did before, but now with fake data.

    Currently implemented

    Streaming.

    Still to implement

    Everything else.

    Until I implement a 'faked' version of a given feature, I'll leave existing code as is, meaning it should function as ntwitter did.

    install

    npm i ftwitter

    Downloadsweekly downloads

    4

    version

    0.1.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar