useful-typescript-functions
v4.1.4
Published
Adds useful functions written in Typescript
Downloads
965
Maintainers
Readme
Useful TypeScript Functions
A dependency-free collection of useful functions for applications in TypeScript. (Actually, you need some peer libraries if you use some of the functions). Written in Typescript and works for CJS and ESM.
- Objects for working with objects
- Functions run asynchronous functions one after each other
- Logger a structured log file generator which can easily be tested
- Server to simplify creation of express.js servers and routers
- Files to help handle files, especially image previews
- Mailer for sending html templated emails easily
- Streams for easier handling of streams of data
Upgrade from version 3
Version 4 of useful-typescript-functions
only works with ESM.
Upgrade from version 2
There are some breaking changes of version 3.
- If you use
Server
, you should have a look into the this upgrade info. - Previously deprecated functions
flattenObject()
andinflateObject()
are now removed. You now need to move toflatten
andinflate()
now. - Instead of using
CSVLogger
to read and write CSV files, you should now useStreams
module and its CSV related transforms. - The
CSVLogger
module is now removed in favour of usingLogger
and its functioncreateCSVTransport()
. Read about that here