UNPKG

samara

Version:

Basic TypeScript-Functions.

47 lines (41 loc) 734 B
# Samara A small Set of basic TypeScript-Functions, which I use in different Projects. ## Import ``` import * as sys from "samara"; OR const sys = require("samara"); ``` ## Classes - IndexedObject - JSONObject - ObjectContainer - SourceObject ## Functions - addBreak - capitalizeFirstLetter - createPath - cutFromString - extractFromString - fillString - getChancePerCent - getChancePerMill - getRandomIntPseudo - getRequest - isFileExist - isNull - isNumeric - isValidKey - readDirectory - readFile - removeAll - removeBreaks - removeBreaksAndTabs - removeDoubleBreaks - removeDoubleSpaces - removeMultipleSpaces - removeTabs - removeTags - replaceAll - replaceUmlauts - writeFile