Thanks to NPM's npx utility, you can use Datagram without installing it locally. All you need is a relatively new version of NodeJS and NPM.
# Generate Datagram user file$ npx datagram user foo# Create new datagram$ npx datagram create -u foo my_datagram
# Add a file$ npx datagram add -u foo -d my_datagram cat.jpg# Check that file is there$ npx datagram list -u foo -d my_datagram
One of the most useful things in Datagram is that you can share your datagram whenever you want with one click. When you share your datagram, you get a sharelink. Only the people who you give this sharelink can access your datagram.
# Share your datagram$ npx datagram share -u foo -d my_datagram# in return you get a sharelink
If you have a server, you can create hosting datagrams. Hosts will make a copy of your datagram and keep your datagram available when you are not online.
There are no limits on how many hosts you create. The more hosts you have running on different servers, the faster the download speeds and the more robust your datagram is against servers going down.
# Clone and host$ npx datagram host -u foo -l [sharelink]
$ npm install -g datagram
Datagram has a built-in CLI utility called dg. The usage is exactly the same as shown above with npx. Replace
npx datagram with
dg and you are good to go.