zalgo

Determines if the string consists of zalgo text.

zalgo(string: string, threshold: number): boolean
Parameters
string (string) string
threshold (number = 0.55) threshold
Returns
boolean: boolean
Example
var snu = require('s-node-utils');

snu.is.zalgo('ť͈̓̆h̏̔̐̑ì̭ͯ͞s̈́̄̑͋');
//=> true

capitalize

Converts the first string character to uppercase.

capitalize(string: string): string
Parameters
string (string) Character string
Returns
string: Character string
Example
var snu = require('s-node-utils');

snu.string.capitalize('a text');
//=> A text

unzalgo

Removes all Zalgo text characters for every word in a string if the word is zalgo text.

unzalgo(string: string, threshold: number): string
Parameters
string (string) string
threshold (number = 0.55) threshold
Returns
string: string
Example
var snu = require('s-node-utils');

snu.string.unzalgo('ť͈̓̆h̏̔̐̑ì̭ͯ͞s̈́̄̑͋');
//=> this