@turtlepay/utilities
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

TurtlePay® Utilities Library

Prerequisite Documentation Maintenance License: MIT Twitter: TurtlePay

NPM

Master Build Status

Build Status

Development Build Status

Build Status

Overview

Provides an easy to use HTTP/s Client interface that is meant to be extended from

Prerequisites

  • node >= 12

Documentation

Full library documentation is available at https://utilities.turtlepay.dev

Install

Using Yarn

yarn add @turtlepay/utilities

Using NPM

npm install @turtlepay/utilities

Usage

import { AES, PEM } from '@turtlepay/utilities';

(async() => {
    const pem = new PEM()
    
    const keys = await pem.generateKeys();
    
    const sig = await pem.sign({test: 'data'}, keys.privateKey);

    console.log(await pem.verify({test: 'data'}, keys.publicKey, sig));
})

(async() => {
    const aes = new AES('password');

    const secret = await aes.encrypt({test: 'data'});

    const data = await aes.decrypt<{test: string}>(secret);

    console.log(data);
})

Run tests

yarn test

Author

👤 TurtlePay® Development Team

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 TurtlePay® Development Team.

This project is MIT licensed.

Package Sidebar

Install

npm i @turtlepay/utilities

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

15.4 kB

Total Files

9

Last publish

Collaborators

  • brandonlehmann