Socket
Socket
Sign inDemoInstall

text-mask-rut

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    text-mask-rut

A Text Mask addon to format the Chilean National Identifier Number (RUT)


Version published
Weekly downloads
143
decreased by-23.12%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Text Mask RUT

Node version Build Status Coverage Status NSP Status

A Text Mask addon to format the Chilean National Identifier Number (RUT)

Demo

Installation

yarn add text-mask-rut

Usage example

React Example

import React from 'react'
import MaskedInput from 'react-text-mask'
import createRutMask from 'text-mask-rut';

const rutMask = createRutMask();

export default () => (
  <div>
    <MaskedInput
      mask={rutMask}
    />
  </div>
)

Vanilla JS Example

var myInput = document.querySelector('.maskedInput');

vanillaTextMask.maskInput({
  inputElement: myInput,
  mask: createRutMask(),
});

Development setup

There isn't additional steps to:

yarn install

But always check the tests and lint before to commit or PR

Release History

  • 0.0.3

    • Extract split functionality
    • Reformat for codeclimate
  • 0.0.2

    • Fix UMD build
    • Reformat main code
    • Add integrations with travis, coveralls, codeclimate and NodeSecurity
    • Add example
    • Improve README
  • 0.0.1

    • Work in progress

Licencing

Distributed under the MIT license. See LICENSE for more information.

Contributing

  1. Fork it (https://github.com/LuisUrrutia/text-mask-rut/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Check the tests and lint (yarn lint && yarn test)
  5. Push to the branch (git push origin feature/fooBar)
  6. Create a new Pull Request

Keywords

FAQs

Last updated on 19 Apr 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc