Easy data for everyone, from everywhere. 🤤
Follow these simple instructions to get set up and ready to use Clauneck.
npm is the package manager for javascript
Read about npm here 💩
(I personally like using yarn 🙉 )
View the NPM page for Clauneck here 📄
Install Clauneck just like any other package: 📦
With NPM:
npm i -s clauneck
With Yarn:
yarn add clauneck
And use it:
const clauneck = require('clauneck');
Or, with TypeScript
import * as clauneck from 'clauneck'
or commands individually
import { users, get } from 'clauneck'
Assuming that clauneck
is assigned to the clauneck variables 🙊
These all return promises and were created using async/await! ❤️
Gets data from a user 🌍
clauneck.get(
path: string,
options?: object
);
Merges, updates data 🎉
clauneck.set(
path: string,
psk: string,
newData: any,
options?: object
);
Sends a request to the Clauneck API
clauneck.clnk(
cmd: string
params?: object
);
Get the users! 🤼
clauneck.users();
Creates a new user 🎉
clauneck.create(
name: string,
psk: string
);
Changes a user's password 🔑
clauneck.psk(
handle: string,
oldPsk: object,
newPsk: object
);
Changes a user's name 🙌
clauneck.name(
handle: string,
psk: string,
newName: string
);
Gets a user's id and name ❓
clauneck.user(
handle: string
);
Checks a user's handle and password combo 🔐
clauneck.check(
handle: string,
psk: string
);
Checks if a user exists 🐦
clauneck.exists(
handle: string
);
This makes a name safe for clauneck.
clauneck.safeName(
name: string
);
This makes a proper handle for clauneck.
clauneck.safeHandle(
handle: string
);
Clauneck is an easy to use database for your data. 😘
If you catch something or want to work on Clauneck, it is open-sourced on GitHub!
Thanks for reading. 🎉🎉