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