Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
paste.gg
Advanced tools
Readme
A library for interacting with the Paste.GG API. I have created this in a short amount of time and will expect more updates in the future. The main purpose of this is to help users from having to create API calls.
• API Documentation
• GitHub
• NPM
npm install paste.gg
yarn add paste.gg
npm install SerenModz21/paste.gg#beta
yarn add SerenModz21/paste.gg#beta
const PasteGG = require("paste.gg");
// or
import PasteGG from "paste.gg";
// If you want to be anonymous
const pasteGG = new PasteGG()
// If you want to use an api key
const pasteGG = new PasteGG("apiKeyHere")
// if you would like to exclude file contents
await pasteGG.get("idHere")
// If you would like to include file contents
await pasteGG.get("idHere", true)
await pasteGG.post({
name: "Paste name", // Optional
description: "Paste description", // Optional
expires: "2020-12-21T02:25:56.428Z", // Optional (must be a UTC ISO 8601 string)
files: [{
name: "file.txt", // Optional
content: {
format: "text",
value: "This is where the file content will go"
}
}]
})
// Delete with deletion key
await pasteGG.delete("idHere", "deletionKeyHere")
// Delete with auth key if not set in constructor
await pasteGG.delete("idHere", "authKeyHere")
// Leave blank if auth key is in the class constructor
await pasteGG.delete("idHere")
await pasteGG.update("idHere", {
name: "new name", // Optional (if you want to remove the name)
description: "new description"
})
Contributions are more than welcome. If you would like to add to this API, you can open a pull request as I haven't added everything on the API, only the things that will get used more often.
Copyright © SerenModz21 2018 - 2021
FAQs
An easy-to-use library for interacting with the Paste.GG API. Contains examples, strong JSDocs, TypeScript types, and support for Node.js 12+. Works in both JavaScript and TypeScript.
The npm package paste.gg receives a total of 709 weekly downloads. As such, paste.gg popularity was classified as not popular.
We found that paste.gg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.