86+ standalone, tree-shakable Angular pipes for text, arrays, math, objects, and more.
Docs & live playground · Library README
npm install ngx-transformsimport { TruncatePipe } from 'ngx-transforms';
@Component({
standalone: true,
imports: [TruncatePipe],
template: `<p>{{ post.body | truncate:80 }}</p>`,
})
export class PostCard {}See the library README for the full pipe catalog.
This is an Nx monorepo with the published library in libs/ngx-transforms/ and the docs site in apps/docs/.
- Node.js v22+
- pnpm v10+
git clone https://github.com/mofirojean/ngx-transforms.git
cd ngx-transforms
pnpm installpnpm nx serve docs # run docs site at localhost:4200
pnpm nx test ngx-transforms # run library unit tests (Vitest)
pnpm nx lint ngx-transforms # lint the library
pnpm nx build ngx-transforms # produce dist/libs/ngx-transforms- Branch from
master(feature/...orfix/...) - Add tests for any new pipe — every pipe needs a
.spec.ts - Keep commits in Conventional Commits form (
feat:,fix:,docs:, etc.) - Open a PR against
masterCI must be green (lint + test + build)
apps/
docs/ Documentation site (Angular)
docs-e2e/ Playwright E2E tests
libs/
ngx-transforms/
src/lib/pipes/<category>/ Individual pipe implementations + specs
src/providers/ ALL_PIPES provider