@hk223/srcshare.io
TypeScript icon, indicating that this package has built-in type declarations

0.0.13 • Public • Published

@hk223/srcshare.io

The unofficial API Wrapper for srcshare.io.

Installation

npm i @hk223/srcshare.io

Creating a Bin

const srcshare = require("@hk223/srcshare.io");
const bin = await srcshare.create({
    code: "hello world",
    error: "bad error",
    title: "my code",
    description: "my code here is the best code",
});
console.log(`Code can be found here: ${bin.url}`);

Getting a Bin

const srcshare = require("@hk223/srcshare.io");
const bin = await srcshare.get("60cabbbc0b940faba40988ff");
console.log(bin);

FAQ

  • Can I add a language when posting?
    • Done

Support

Readme

Keywords

none

Package Sidebar

Install

npm i @hk223/srcshare.io

Weekly Downloads

2

Version

0.0.13

License

ISC

Unpacked Size

7.46 kB

Total Files

14

Last publish

Collaborators

  • hk223