command to create custom pipe in angular 6

JavaScript
ng generate pipe personName
Source

Also in JavaScript: