ng create pipe code example
Example 1: angular cli generate new module
ng generate module module-name
Example 2: command to create custom pipe in angular 6
ng generate pipe personName
ng generate module module-name
ng generate pipe personName