New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

modulo-11

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modulo-11

Modulo 11 - Digito de Verificación basado en el número de identificación tributario

latest
Source
npmnpm
Version
1.1.5
Version published
Maintainers
1
Created
Source

Digito de verficacion DIAN

Este modulo sireve para calcular el digito de verificación de un NIT o RUT de la entidad Tributaria DIAN en Colombia.

Ejemplo Básico

El siguiente ejemplo solo es de uso didáctico. Tomamos como ejemplo un NIT empresarial econtrado al azar. En este caso el de Cocacola FEMSA Colombia.

	
/** ES2015: */
import modulo from 'modulo-11'

/** ES5: */
var modulo = require('modulo-11')

/* modulo.calc => 0 */
modulo.calc(nit) // Obtiene unicamente el digito de verificación 

/** modulo.format => '${nit}-0' */
modulo.format(nit) //  '000000000-0' ;

Tener en cuenta que las funciones modulo.calc() y modulo.format() adminten tanto numeros enteros como strings.

TODO

  • Crear Pruebas Unitarias.
  • Crear builds para browser.
  • Publicar en algún cdn.

Licencia

Copyright 2016 Hansel Morales

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Keywords

dian

FAQs

Package last updated on 12 Sep 2017

Did you know?

Socket

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