thepb-cli
v1.4.3
Published
A command line tool for ThePasteBin using the SDK.
Downloads
14
Maintainers
Readme
thepb-cli-node
A command line tool for TheP(aste)B.in using the Node.js SDK.
Install:
npm install -g thepb-cli
To skip the (optional) node-pty module for terminal recording:
npm install -g --no-optional thepb-cli
Setup:
API: thepb --setup <UUIDv4 API Key>
API Sandbox: thepb --setup 73efd6bd-6ea4-44bd-0000-000000000000 --server https://api-sandbox.thepasteb.in/
See thepb --help
for more information.
API:
TheP(aste)B.in API documentation available at https://api.thepasteb.in/docs
API Key:
The production API is currently in BETA. If you would like the opportunity to help test and develop this please feel free to contact us! The API Sandbox is open to the public; feel free to use it!
API Sandbox:
API Sandbox is open to the public! While the development key is available to all, please do not abuse the service. You can find more information on the API Sandbox website.
Terminal recording:
While terminal recording (-R, --record-terminal) CAN work on windows, you must compile node-pty with node-gyp
.
To do this you must have Visual Studio installed. See nodejs/node-gyp for more information.
Because of this, node-pty is an optional dependency, which can be skipped with npm install -g --no-optional thepb-cli
.
Terminal recording tested on:
- Linux (64 bit): Ubuntu 12.04 Desktop, Ubuntu 14.04 Server
- Windows (64 bit): 7, 10
TODO:
- Documentation, for now see
thepb --help
. - Add language verification on the client side, defaults to plain text.
- Currently passes any input to the server. Get a list of valid languages with
thepb --list-languages
.
- Currently passes any input to the server. Get a list of valid languages with
- ~~Cache the languages from
thepb --list-languages
.~~ - Add tests with mocha.
License
Copyright (c) 2016, ThePasteBin (MIT License).