Handy utilities
The package is a simple bunch of useful utilities
Installation
npm install @stein197/util
API
To include the module, import it like this:
import * as moduleName from "@stein197/util/moduleName";
// or
const moduleName = require("@stein197/util/moduleName");
Modules
array
char
KeyboardCode
file
html
json
mime
object
PendingPromise
PromiseState
semver
string
time
util
NOTE: For more detailed documentation, please, refer to the TSDoc comments in the source code.
npm scripts
-
build
- Runclean
,test
andts
-
clean
- Clean the working directory from compiled files -
test
- Run unit tests -
ts
- Compile the project -
ts:check
- Run TypeScript validation without compiling