Skip to content

ntm-al/ntm-angular

Repository files navigation

Ntm Angular

Deploy Test codecov Lint npm npm PRs Welcome code style: prettier

Ntm angular is a package to helps angular developers code faster.

Installation

Ntm Angular requires Node.js v4+ to run.

Install the dependencies

$ npm i @ntm-al/angular

Setup

step 1: add css

@import '~@ntm-al/angular/styles';

step 2: add NtmCoreModule to app NgModule

import { CommonModule } from '@angular/common';
import { NtmCoreModule } from '@ntm-al/angular';

@NgModule({
  imports: [CommonModule, NtmCoreModule],
  bootstrap: [App],
  declarations: [App],
})
class MainModule {}

Features!

We have developed Validators, Directives, Pipes...

Directives

  • Cpf (mask)
  • Cnpj (mask)
  • Phone (mask)
  • Instagram (mask)
  • Input Only numbers
  • Shimmer
  • Twitter (mask)
  • Zipcode (mask)

Validators

  • Cnpj
  • Cpf
  • Date GreaterThan
  • Email
  • Instagram
  • Match Passwords
  • Phone
  • Required
  • Twitter

Pipes (in progress)

  • Difference Time
  • First and last name
  • Number to month

Publishing

$ ng build core --prod
$ cd dist/core
$ npm publish

TODO:

  • Create test to validators
  • Create test to pipes
  • Create a example project to show how to use
  • Create a static page with githubPages
  • Create directive to currency