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

    0.1.2 • Public • Published

    MediaFire JavaScript SDK

    A JS wrapper around the MediaFire RESTful API

    Installation

    npm i mediafire

    Usage

    // Import the lib
    import MediaFire from 'mediafire';
     
    // Create a new session
    const mf = new MediaFire();
     
    // Authenticate future requests
    await mf.authenticate('<token>');
     
    // Retrieve user info from the API
    const info = await mf.user.getInfo();
     
    // Log the JSON results to the console
    console.log('your user info:', info);

    Install

    npm i mediafire

    DownloadsWeekly Downloads

    13

    Version

    0.1.2

    License

    Apache-2.0

    Unpacked Size

    95.1 kB

    Total Files

    43

    Last publish

    Collaborators

    • mf.cavitt
    • tomlangridge