Socket
Socket
Sign inDemoInstall

pastemyst-ts

Package Overview
Dependencies
7
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pastemyst-ts

An API wrapper for paste.myst.rs, written in TypeScript.


Version published
Weekly downloads
2
Maintainers
1
Install size
536 kB
Created
Weekly downloads
 

Readme

Source

PasteMyst-TS

npm NPM npm

An API wrapper for paste.myst.rs, written in TypeScript.

All aspects of the v2 endpoint are currently implemented.

Installation

You can install the library via npm:

npm install pastemyst-ts

Usage

The endpoints are grouped inside the exports of the library. For example, information on a paste can be retrieved as such:

import * as pastemyst from "pastemyst-ts";

/*
    optional; some endpoints require authorization through your personal
    pastemyst api token, retrieved through your profile settings.
*/
pastemyst.authorize("myApiToken");

const myPaste = await pastemyst.pastes.getPaste("myPasteId");

You can find a list of endpoints over on PasteMyst's API docs. Each of these endpoints has an equivalent wrapper method in the library. Since the library is written in TypeScript with a fully-documented codebase, usage can easily be extrapolated from the documentation and IntelliSense.

License

This project is available under a MIT license.

Acknowledgements

Thanks to fmproductions for inspiring me to write this, and for providing valuable feedback on the project.

Keywords

FAQs

Last updated on 18 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc