node-caps
An easy-to-use module to capitalise an string or array
Features
- Fast, up-to-date code-base with ESM support.
- Typings included
Explanation
const Caps = require("node-caps");
Caps.def();
Caps.keep();
Caps.all();
Caps.array();
Caps.sent();
Caps.dash();
Caps.reg();
Caps.perms();
Usage
Default
const Caps = require("node-caps");
import Caps from "node-caps";
Caps.def("hi There");
Keep
const Caps = require("node-caps");
import Caps from "node-caps";
Caps.def("hi There");
All
const Caps = require("node-caps");
import Caps from "node-caps";
Caps.all("hi there");
Array
const Caps = require("node-caps");
import Caps from "node-caps";
Caps.array(["hi", "there"]);
Sent
const Caps = require("node-caps");
import Caps from "node-caps";
Caps.array("hi. there");
Dash
const Caps = require("node-caps");
import Caps from "node-caps";
Caps.dash("hi-there");
Reg
const Caps = require("node-caps");
import Caps from "node-caps";
Caps.reg("the netherlands");
Caps.reg("north-us");
Perms
const Caps = require("node-caps");
import Caps from "node-caps";
Caps.perms(["ADMINISTRATOR"]);
Caps.perms(["MANAGE_MESSAGES"]);
Copyright (c) 2020 simp. & Salvage