Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 823 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 823 Bytes

Enclosed lib

This package contains the core functionalities of Enclosed, an open-source project that aims to provide a simple and secure way to share e2e encrypted notes.

Installation

# with npm
npm install @enclosed/lib

# with yarn
yarn add @enclosed/lib

# with pnpm
pnpm add @enclosed/lib

Usage

import { createNote } from '@enclosed/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 file for more information.

Credits and Acknowledgements

This project is crafted with ❤️ by Corentin Thomasset.