Function bin

  • Uploads the code to sourceb.in

    Parameters

    • code: string

      Code to upload

    Returns Promise<string>

    url of the uploaded code

    Example

    const { bin } = require("kiutils")
    bin("console.log('Hello World')").then(console.log)

Generated using TypeDoc