node-caps
An easy-to-use module to capitalise an string or array
Explanation
const Caps = require('node-caps');
Caps.def()
Caps.keep()
Caps.all()
Caps.array()
Caps.sent()
Caps.dash()
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')
Copyright (c) 2020 simp.