https://github.com/codef0x/pasty
📋 another pastebin.com cli
https://github.com/codef0x/pasty
Last synced: 8 months ago
JSON representation
📋 another pastebin.com cli
- Host: GitHub
- URL: https://github.com/codef0x/pasty
- Owner: CodeF0x
- License: mit
- Created: 2022-03-21T21:11:52.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-18T00:43:03.000Z (about 2 years ago)
- Last Synced: 2025-06-02T16:38:57.422Z (8 months ago)
- Language: JavaScript
- Homepage: https://npmjs.com/package/pasty
- Size: 341 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pasty
pasty is a cli for pastebin.com. With it you can:
- upload files
- upload strings
- list all your pastes
- delete a paste
- get paste content
- get user information (signed in user)
# usage
first, login:
- visit [pastebin.com](https://pastebin.com/) and login
- visit [https://pastebin.com/doc_api#1](https://pastebin.com/api_doc)
- save your api key in a file called `pasty.api` in your home directory (`~/.pasty.api`)
- the contents of your `.pasty.api` should just be the key, nothing else
then run
```
$ pasty login
```
then, create a paste:
```
$ pasty create -s 'hello world!'
```
alternatively, you can upload a file:
```
$ pasty create -f hello_world.txt
```
## other commands
list all your pastes:
```
$ pasty list
```
delete a paste:
```
$ pasty delete
```
get a paste's content:
```
$ pasty get
```
get info about signed in user:
```
$ pasty user
```
logout:
```
$ pasty logout
```
# more options
you can customize your newly created paste:
- syntax highlighting (default: text)
- [supported hightlighting formats](https://pastebin.com/faq#10)
- expiry date (default: never)
- never (N)
- 10 minutes (10M)
- 1 hour (1H)
- 1 day (1D)
- 1 week (1W)
- 1 month (1M)
- 6 months (6M)
- 1 year (1Y)
- paste visibilty (default: public)
- public
- unlisted
- private
> folders are not supported! This is due to the pastebin API not processing the folder option when making the request. It can't be fixed within this repository
# installation
`npm install -g pasty`