dropcode
v1.1.0
Published
CLI tool for dropcode
Readme
DropCode
A command-line tool for downloading files from DropCode snippets.
This CLI tool is designed for the DropCode project, a service for sharing code snippets and files.
Installation
Install dropcode globally using your preferred package manager:
npm
npm install -g dropcodeyarn
yarn global add dropcodepnpm
pnpm add -g dropcodeUsage
After Installation
Once installed globally, you can use the dropcode command from anywhere:
# Using a full URL
dropcode https://dropcode.tonary.app/W_ookvg12pvtwjF36W6iqSi1gVz0cY7u
# Using just the snippet ID
dropcode W_ookvg12pvtwjF36W6iqSi1gVz0cY7uThe file will be downloaded to your current directory.
Without Installation (npx)
You can also use dropcode without installing it globally:
# Using a full URL
npx dropcode https://dropcode.tonary.app/W_ookvg12pvtwjF36W6iqSi1gVz0cY7u
# Using just the snippet ID
npx dropcode W_ookvg12pvtwjF36W6iqSi1gVz0cY7uHow It Works
- Provide a dropcode URL or snippet ID
- The tool fetches the file information
- The file is automatically downloaded to your current directory
If you encounter any access issues, the tool will automatically open the snippet page in your browser as a fallback.
License
MIT
