1.0.1 ā€¢ Published 3 years ago

protectedtext-api v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Unofficial protectedtext.com API

Install

npm install protectedtext-api

Usage

const ProtectedTextAPI = require('protectedtext-api');

(async function() {
    const site_id = "test";
    const site_password = "123";

    var TabManager = (await new ProtectedTextAPI(site_id, site_password).loadTabs());
    var savedText  = (await TabManager.view());

    // View saved content
    console.log(savedText);

    // Save new content, but keep old text
    await TabManager.save(savedText.concat("IT WORKS!"));
})();

API REFERENCE

Future implementations :rocket: :rocket:

  • Add tab support
  • Add support for browser
  • Auto register site, if not exists

Author

šŸ‘¤ Pablo Skubert pablo1920@protonmail.com

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2021 Pablo Skubert <pablo1920@protonmail.com>. This project is MIT licensed.