create - Oppenjaimer/LbelDB.js GitHub Wiki
create(label)
Create a label or labels in local memory. To be called along with init
.
Parameter | Type | Optional | Default | Description |
---|---|---|---|---|
label | string or string[] |
❌ | none | The name or names of the label or labels to create. |
Returns: void
Example:
const ldb = require("lbeldb");
ldb.init();
ldb.create(["user", "age", "employed"]); // Labels: ["id", "user", "age", "employed"]