A comprehensive collection of modern, type-safe, and performant standalone Angular pipes for common data transformations.
- Pure and Performant -- All pipes are pure by default, ensuring optimal change detection performance.
- Type-Safe -- Written in TypeScript with strict type checking to catch errors at compile time.
- Standalone -- Fully compatible with Angular's standalone components API.
- Tree-Shakeable -- Import only what you need, keeping your bundle size small.
- Modern -- Built for Angular 21+ with zoneless architecture support.
npm install ngx-transformsImport the pipe you need directly into your component:
import { Component } from '@angular/core';
import { CamelCasePipe, CountPipe } from 'ngx-transforms';
@Component({
selector: 'app-root',
standalone: true,
imports: [CamelCasePipe, CountPipe],
template: `
<p>{{ 'hello world' | camelCase }}</p>
<p>Array length: {{ items | count }}</p>
`,
})
export class AppComponent {
items = [1, 2, 3, 4, 5];
}For the full list of available pipes, see the library README.
For full documentation and live examples, visit the documentation site.
Contributions are welcome. Please follow the process below to submit changes.
# Clone the repository
git clone https://github.com/mofirojean/ngx-transforms.git
cd ngx-transforms
# Install dependencies
pnpm install
# Start the docs app in development mode
pnpm nx serve docs
# Run library tests
pnpm nx test ngx-transforms
# Lint the library
pnpm nx lint ngx-transforms
# Build the library
pnpm nx build ngx-transforms- Fork the repository
- Create a feature branch from
master(git checkout -b feature/your-feature) - Make your changes and ensure all tests pass
- Commit your changes with a descriptive message following Conventional Commits (e.g.,
feat: add new pipe,fix: resolve edge case) - Push to your branch (
git push origin feature/your-feature) - Open a Pull Request against
master
All pull requests must pass the CI pipeline (lint, test, build) before they can be merged.
ngx-transforms/
apps/
docs/ Documentation site (Angular)
docs-e2e/ End-to-end tests (Playwright)
libs/
ngx-transforms/ Pipe library (published to npm)
src/lib/pipes/ Individual pipe implementations
This project is licensed under the MIT License. See the LICENSE file for details.
Built and maintained by Mofiro Jean.