import { Pipe , PipeTransform } from '@angular/core' ; import { maskBr } from 'js-brasil' ; @ Pipe ( { name : 'cep' , } ) export class CEPPipe implements PipeTransform { transform ( cepValue ) { return maskBr . cep ( cepValue ) ; } }