npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@avancoinformatica/autonumeric

v3.0.10

Published

An Angular library that wraps the awesome [AutoNumeric](https://github.com/autoNumeric/autoNumeric/) library

Readme

@angularfy/autonumeric

An Angular library that wraps the awesome AutoNumeric library

Get in touch on [email protected]


@angularfy/autonumeric supports most of AutoNumeric options.

Checkout the demo

Note: In order to minimize the size of the @angularfy/autonumeric, the AutoNumeric library dependency is not bundled with it.

This means you need to include the AutoNumeric library.

Dependencies

The dependency is autoNumeric 4. Here is the list of minimal required versions:

| @angularfy/autonumeric | angular | autoNumeric | | ---------------------- | ------- | ------------- | | 1.x.x | ^4.0.0 | ^4.0.0 | | 2.x.x | ^4.0.0 | ^4.0.0 | | 3.x.x | ^4.0.0 | ^4.0.0 |


Installation

After installing the above dependencies, install @angularfy/autonumeric via npm:

npm install --save @angularfy/autonumeric

or yarn :

yarn add @angularfy/autonumeric

Once installed you need to import our main module:

import { AutonumericModule } from '@angularfy/autonumeric';

@NgModule({
  //...
  imports: [
            AutonumericModule.forRoot(), // ...
        ],
  //...
})
export class YourAppModule {
}

How to use the @angularfy/autonumeric ?

The AutoNumeric component can be instantiated the same way AutoNumeric can.

After importing the AutonumericModule in your component, you can define your options as follow :

this.myOptions = {
  digitGroupSeparator: '.',
  decimalCharacter: ',',
  decimalCharacterAlternative: '.',
  currencySymbol: '\u00a0€',
  currencySymbolPlacement: 's',
  roundingMethod: 'U',
  minimumValue: '0'
}

in your HTML :

<input [(ngModel)]="myValue" autonumeric [options]="myOptions"/>

or simply with a predefined option name:

<input autonumeric  [(ngModdel)]="myValue" options="French">

you can also use object literal as options directly in HTML

<input [(ngModdel)]="myValue" autonumeric [options]="{
              digitGroupSeparator: '.',
              decimalCharacter: ',',
              decimalCharacterAlternative: '.',
              currencySymbol: '\u00a0€',
              currencySymbolPlacement: 's',
              roundingMethod: 'U',
              minimumValue: '0'
    }"/>

The library supports also reactive forms.


Customize autonumeric defaults

You can override autonumeric default by providing default configuration:

import { AutonumericModule } from '@angularfy/autonumeric';

@NgModule({
  //...
  imports: [
            AutonumericModule.forRoot({
                    // user defaults here
            }), // ...
        ],
  //...
})
export class YourAppModule {
}

You can also use providers to achieve this :

const userDefaults :AutonumericOptions= {
// default options
}
export function defaultsFactory(userDefaults: AutonumericOptions): AutonumericDefaults {
    const defaults: AutonumericDefaults = new AutonumericDefaults();
    Object.assign(defaults, userDefaults);
    return defaults;
}
@NgModule({
  imports: [AutonumericModule],
  providers: [{
                       provide: USER_DEFAULTS,
                       useValue: userDefaults
               },
               {
                       provide: AutonumericDefaults,
                       useFactory: defaultsFactory,
                       deps: [USER_DEFAULTS]
               }]
})
export class YourAppModule {
}

Supported events

Alongside with native events, autonumeric emits two events : formatted, rawValueModified, those events are bubbled from the native library. Please refer to official docs for more details

<input options="French" autonumeric [(ngModel)]="myModel" (change)="onChange($event)" (formatted)="onFormat($event)" (rawValueModified)="onValueUpdate($event) />

If you want to keep your ngModel synchronized please use two-way binding otherwise, you can capture the change or format event. (format is more verbose, happens every time the input visually changes, the change event in the other hand, is triggered only when the user types something and leaves the input.)

Readonly mode

you can use the component in a reardonly mode :

<span
    [(ngModdel)]="myValue" autonumeric [options]="myOptions">
</span>

you can also use an input with {..., readOnly : true } in options.

Styling

we are agnostic about how the input should be styled. you can define your own style rules

input[autonumeric],span[autonumeric] {
    text-align:right;
}

Integration with other scripts & events support

If some reason you need to access the native autonumeric instance, you can reference your element using @ViewChild.

<input options="French" autonumeric #myNumericField  />

in your component :

 @ViewChild('myNumericField', { static: true })
 myNumericField:AutonumericDirective;

...
reset(){
    this.myNumericField.instance.reset();
}
set(val:any){
    this.myNumericField.instance.set(val);
}

...

Demo

The official AutoNumeric documentation

Requirements

Browser support

This supports the same browsers than AutoNumeric supports:

  • Firefox and
  • Chrome

(latest 2 versions) If you use IE/Edge/Safari/Opera, this might work ;)

What's next ?

I will be working on supporting more AutoNumeric options. If you have any suggestions please feel free to reach by email bellow.

Greetings

This project is hugely inspired from vue-js implementtation of AutoNumeric by Alexandre Bonneau

Support

As always, if you find this useful, please consider supporting its development! Huge Thanks :)

License

@angularfy/autonumeric is open-source and released under the [MIT License]

PS: I would love to know how you're using @angularfy/autonumeric. Contact and tell me!, [email protected] :)