Pipe transformation utility functions for JavaScript/TypeScript inspired by Angular Pipes and ngx-pipes