0.5.5 • Published 2 years ago

@sempervirens/tools v0.5.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Sempervirens Tools

A set of tools for various purposes

Tests badge Version badge

Installation

npm i @sempervirens/tools;

Tools

Server Tools

startServer

Starts a Node Express server while keeping a set of sockets in order to stop the server later. (Mainly for use in tests.)

stopServer

Stops a server by ID started with startServer. (Mainly for use in tests.)

stopAllServers

Stops all servers started with startServer. (Mainly for use in tests.)

timestamp

Uses Moment.js to return a default format [MM-DD-YY hh:mm:ssa] and formattable string.

duration

Calculates a duration between a start and end parameter, both of which may be a moment or Date object. If not given, end is the current moment.

0.5.5

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago