1.0.2 • Published 1 year ago

rucmatch v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

RUCMatch

RUCMatch is an application designed for the dynamic generation of Peruvian RUC numbers, especially for testing. With RUCMatch, users can quickly obtain a valid RUC number for use in testing or application testing.

Getting Started

Prerequisites

  • Node.js v10+
  • npm

Installation

Install from npm:

npm i rucmatch

Table of Contents

FunciónDependencias
1connectToInternalDatabase
2getLastUpdate
3unzipFile
4insertData
5formatCSV
6updateDataformatCSV, insertData
7shouldDownload
8downloadAndSaveZip
9updateFromSunatgetLastUpdate, shouldDownload, downloadAndSaveZip, unzipFile, updateData
10matchFromLocalDB
11getRandomRucconnectToInternalDatabase
12isValidRuc
13rucDisableconnectToInternalDatabase
14rucEnableconnectToInternalDatabase
15searchRucisValidRuc, connectToInternalDatabase

Built With

  • Node.js
  • Sequelize
  • Cheerio
  • Adm-zip
  • Axios
  • csv-parser

License

This project is licensed under the MIT License - see the LICENSE file for details.