Project

sourcebin

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
CLI tool that works with sourceb.in .
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
>= 0
>= 0
 Project Readme

Sourcebin

CLI tool that uploads text to sourceb.in . (Basically a Gem version of sourcebin)

Installation

To install this package using GEM, run: gem install sourcebin

Usage

Write via the Shell

coming soon!

Via the Ruby API

require 'sourcebin'

# Write and Send
#                    optional
puts Sourcebin.write("file.rb","puts('Written with Sourcebin CLI Ruby')") # return key

# Send Files
puts Sourcebin.sendFile("./file.rb") # return key

# Read Files via hasteb.in
#                        key
puts Sourcebin.readRaw('aab313d603') # return raw

# Run Ruby File via sourceb.in
#                key
Sourcebin.run('aab313d603')

# Download File via hasteb.in
Sourcebin.download('aab313d603')


puts Sourcebin.base_url # https://sourceb.in/

puts Sourcebin.domain # sourceb.in

puts Sourcebin.ping # 450

License

This module is licensed under the MIT license.