open-index/open-npm huggingface dataset:
npm package: @geomena/cli
Description: shh.io cli to create secure notes.
Author: geomena
Latest version: 1.1.0

# shh.io CLI

This package contains the CLI for [shh.io](https://shh.tofi.pro), an open-source project that aims to provide a simple and secure way to share e2e encrypted notes.

## Getting Started

To install the CLI, run the following command:

### Create a note

```bash
# Basic usage
enclosed create "Hello, World!"

# Using stdin
cat file.txt | enclosed create

# With full options
enclosed create --deleteAfterReading --password "password" --ttl 3600 "Hello, World!"
```

### Configure the shh.io instance to use

```bash
# By default, the CLI uses the public instance at shh.tofi.pro
enclosed config set instance-url https://shh.tofi.pro
```

## Usage

```bash
enclosed <command> [options]
```

### Create a note

```bash
# Basic usage
enclosed create "Hello, World!"

# Using stdin
cat file.txt | enclosed create --stdin
# or
cat file.txt | enclosed create -s

# To add files as attachments
enclosed create --file file1.txt --file file2.txt "Hello, World!"

# With full options
enclosed create --file file1.txt --deleteAfterReading --password "password" --ttl 3600 "Hello, World!"

# Get more information about the command
enclosed create --help
# or
enclosed create -h
```

### View a note

```bash
# The password will be prompted if the note is password-protected
enclosed view <note-url>

# Or you can provide the password directly
enclosed view --password "password" <note-url>
```

### Configure the shh.io instance to use

```bash
# By default, the CLI uses the public instance at shh.tofi.pro
enclosed config set instance-url https://shh.tofi.pro
```

## License

This project is licensed under the Apache 2.0 License. See the [LICENSE](./LICENSE) file for more information.

## Credits and Acknowledgements

This project is crafted with ❤️ by [geomena](https://geomena.com).
npm package: @geomena/crypto
Description: shh.io cross-env crypto primitives
Author: geomena
Latest version: 1.1.0

# shh.io crypto library

This package contains the natives crypto primitives used by the [shh.io lib and project](https://shh.tofi.pro). It is a standalone package built to provide compatibility between different environments by exposing the same API for node:crypto and web SubtleCrypto.

## Installation

```bash
# with npm
npm install @geomena/crypto

# with yarn
yarn add @geomena/crypto

# with pnpm
pnpm add @geomena/crypto
```

## License

This project is licensed under the Apache 2.0 License. See the [LICENSE](./LICENSE) file for more information.

## Credits and Acknowledgements

This project is crafted with ❤️ by [geomena](https://geomena.com).
npm package: @geomena/lib
Description: shh.io lib to create secure notes.
Author: geomena
Latest version: 1.1.0

# shh.io lib

This package contains the core functionalities of [shh.io](https://shh.tofi.pro/), an open-source project that aims to provide a simple and secure way to share e2e encrypted notes.

## Installation

```bash
# with npm
npm install @geomena/lib

# with yarn
yarn add @geomena/lib

# with pnpm
pnpm add @geomena/lib
```

## Usage

```javascript
import { createNote } from '@geomena/lib';

const { noteUrl } = await createNote({
    content: 'Hello, World!',
    password: 'password',
    ttlInSeconds: 3600,
    deleteAfterReading: true,
});

console.log(noteUrl);
```

## License

This project is licensed under the Apache 2.0 License. See the [LICENSE](./LICENSE) file for more information.

## Credits and Acknowledgements

This project is crafted with ❤️ by [geomena](https://geomena.com).