clortho-lite
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

alt Vinz Clortho

Clortho-Lite

Let's give credit where it is due. This package is derived from: https://github.com/zetlen/clortho

The reason that I rewrote it was because it came shipped with some UX elements that I didn't want. It hadn't been updated in a while. And I like dealing with TypeScript better, so I decided to convert it.

Basic Usage

const clortho = require('clortho-lite').clortho;
 
let service = clortho('Whatever Name of Your Service');
 
service.set('some-user-name', 'some-password')
    .then(function (credentials) {
        console.log(credentials);
    })
    .catch(function (err) {
        console.log(err);
    });
 
service.get('some-user-name')
    .then(function (credentials) {
        console.log(credentials);
    })
    .catch(function (err) {
        console.log(err);
    });
 

That's about it.

Dependents (0)

Package Sidebar

Install

npm i clortho-lite

Weekly Downloads

5

Version

2.0.6

License

ISC

Unpacked Size

10.2 kB

Total Files

16

Last publish

Collaborators

  • jasonbyrne