# nosdav-cli

> nosdav cli

Latest version **0.0.9** (published 2023-07-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install nosdav-cli
pnpm add nosdav-cli
yarn add nosdav-cli
bun add nosdav-cli
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2023-07-02 |
| First published | 2023-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Melvin Carvalho |
| Maintainers | melvincarvalho |
| Keywords | nostr, nostdav, cli |

## Links

- npm: https://www.npmjs.com/package/nosdav-cli
- Repository: https://github.com/nosdav/nosdav-cli
- Homepage: https://github.com/nosdav/nosdav-cli#readme
- Issues: https://github.com/nosdav/nosdav-cli/issues
- npm.io page: https://npm.io/package/nosdav-cli

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^1.3.5
- [minimist](https://npm.io/package/minimist.md) ^1.2.8
- [nostr-tools](https://npm.io/package/nostr-tools.md) ^1.9.0
- [websocket-polyfill](https://npm.io/package/websocket-polyfill.md) ^0.0.3

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.0.9 (latest) — 2023-07-02
- 0.0.8 — 2023-07-02
- 0.0.7 — 2023-04-18
- 0.0.6 — 2023-04-18
- 0.0.5 — 2023-04-18
- 0.0.4 — 2023-04-18
- 0.0.3 — 2023-04-10
- 0.0.2 — 2023-04-10
- 0.0.1 — 2023-04-10

## README

<div align="center">  
  <h1>nosdav-cli</h1>
</div>

<div align="center">  
<i>nosdav-cli</i>
</div>

---

<div align="center">
<h4>Documentation</h4>
</div>

---

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nosdav/nosdav-cli/blob/gh-pages/LICENSE)
[![npm](https://img.shields.io/npm/v/nosdav-cli)](https://npmjs.com/package/nosdav-cli)
[![npm](https://img.shields.io/npm/dw/nosdav-cli.svg)](https://npmjs.com/package/nosdav-cli)
[![Github Stars](https://img.shields.io/github/stars/nosdav/nosdav-cli.svg)](https://github.com/nosdav/nosdav-cli/)

## Introduction

nosdav-cli is a set of scripts that can be used with nostr and nosdav on the command line

## send.js

send.js sends events to a server using the Nostr protocol. 

The code initializes an event object and signs it using a private key, then sends the signed event to a Nostr server using a WebSocket connection. 

If the server accepts the event, a message is logged to the console. The script then waits for 500 milliseconds before closing the WebSocket connection. 

This script can be used as a starting point for building more complex applications that use the Nostr protocol for secure communication.

Usage
Sending an Event

To send an event to a Nostr relay, run the send.js script. The script accepts the following command-line options:

    -u <url>: The URL to include in the event (required).
    -k <private_key>: Your private key (required).
    -r <relay>: The Nostr relay URL (optional, defaults to wss://nostr-pub.wellorder.net).


## put.js

Uploading a File

To upload a file to a NoSDAV server, run the put.js script. The script accepts the following command-line options:

    -f <file_path>: The path to the file you want to upload (required).
    -k <private_key>: Your private key (optional, defaults to a sample private key).
    -s <server>: The NoSDAV server URL (optional, defaults to https://example-nosdav-server.com).



## License

- MIT

---
_Source: https://npm.io/package/nosdav-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
