New:Socket for Asana Is Now Available.Learn more
Get Started

dropthis

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dropthis - npm Package Compare versions

Comparing version
0.1.0
to
0.1.1
+1
-1
dist/cli.cjs

@@ -1056,3 +1056,3 @@ #!/usr/bin/env node

const store = options.store ?? new MemoryCredentialStore();
program.name("dropthis").description("Publish anything online and get a URL back.").version("0.1.0");
program.name("dropthis").description("Publish anything online and get a URL back.").version("0.1.1");
program.option("--api-key <key>", "Override API key for this invocation");

@@ -1059,0 +1059,0 @@ program.option("--api-url <url>", "Override API base URL");

{
"name": "dropthis",
"version": "0.1.0",
"version": "0.1.1",
"description": "Official CLI for Dropthis.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -7,47 +7,11 @@ # Dropthis CLI

Add this to your project's `CLAUDE.md`, `.cursorrules`, or agent instructions:
Read [SKILL.md](./SKILL.md) and follow the instructions to publish with dropthis.
~~~markdown
## dropthis — publish anything online
## For Humans
dropthis CLI publishes HTML, files, or folders and returns a permanent URL. One command in, one URL out.
1. Copy the instruction above and send it to your AI agent.
2. Your agent will install dropthis and ask for your email.
3. Check your inbox for an OTP code and give it to your agent.
4. Done — your agent can now publish pages for you.
### Install
```bash
npm install -g dropthis
```
### First-time setup
If `dropthis whoami` fails with exit code 3, the user needs to log in:
1. Ask the user for their email address
2. Run `dropthis login request --email <their-email>`
3. Tell the user to check their email for a one-time code
4. Once they give you the code, run `dropthis login verify --email <their-email> --otp <code>`
5. Confirm with `dropthis whoami --json`
### Publishing
```bash
# Publish a file
dropthis publish ./page.html --url
# Publish a folder
dropthis publish ./dist --url
# Publish generated HTML from stdin
echo "<h1>Hello</h1>" | dropthis publish --content-type text/html --path index.html --url
```
`--url` prints only the published URL. Use `--json` for full response.
### After setup, offer a demo
Once authenticated, offer: "Want me to create a page and publish it so you can see dropthis in action?"
If yes: generate a single HTML file with something relevant to the user's project, publish it with `dropthis publish`, and return the URL.
~~~
## Install

@@ -54,0 +18,0 @@

Sorry, the diff of this file is too big to display