Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inputmask-core

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inputmask-core - npm Package Versions

2.2.0

Diff

Changelog

Source

2.2.0 / 2016-09-15

Fixed placeholderChar to allow ''

Fixed setSelection to set the selection to the end of the prior value chunk (user-input value)

Added isRevealingMask property

insin
published 2.1.1 •

Changelog

Source

2.1.1 / 2015-09-11

Fixed settingnull or undefined as the mask's value - this will now be treated as if '' had been set rather than causing an error (#5)

insin
published 2.1.0 •

Changelog

Source

2.1.0 / 2015-07-15

Added mask.getRawValue() to get the user's raw input, without any non-editable placeholder characters. [[muffinresearch][muffinresearch]]

Added customisation of the character used to fill in editable slots for which these is no input yet, by passing a single-character placeholderChar string as an option to the InputMask constructor. [[muffinresearch][muffinresearch]]

insin
published 2.0.1 •

Changelog

Source

2.0.1 / 2015-07-14

Fixed taking input for patterns with leading static parts when the cursor or entire selection is in the static part. [[jordansexton][jordansexton]]

published 2.0.0 •

Changelog

Source

2.0.0 / 2015-04-03

Added mask.undo() and mask.redo()

setPattern() now sets/resets the selection.

Breaking changes

setPattern() now takes an options Object for its second argument instead of a String for the new value. value and selection options may be given.

The given (or defaulted) selection object is now used as-is when setting initial selection. It used to be set via setSelection(), which moved it to the first editable index.

insin
published 1.2.0 •

Changelog

Source

1.2.0 / 2015-03-26

Added customisation of format characters by passing a formatCharacters object as an option to the InputMask constructor.

Added the ability for format character definitions to transform valid input.

Changed letter format character to a

Added new format characters:

  • A - letter, which will be transformed to upper case
  • # - alphanumeric, which will be transformed to upper case
insin
published 1.1.0 •

Changelog

Source

1.1.0 / 2015-03-25

Added the ability to escape special pattern characters with a leading backslash character. As a result, backslashes must also be escaped to be used as static parts of a mask's pattern.

Added a mask.emptyValue property for convenient comparison.

insin
published 1.0.0 •

Changelog

Source

1.0.0 / 2015-03-25

Initial release features:

  • Fixed-width masking pattern
  • Format characters:
    • 1 - number
    • A - letter
    • * - alphanumeric
  • Editing operations which are aware of cursor position/selection and update post-op cursor position:
    • Single character input
    • Pasting a string
    • Backspacing
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc