ruc-peru

1.1.3 • Public • Published

ruc-peru

Library to search RUC on SUNAT database

npm install ruc-peru

🇵🇪 Spanish - Español

Get Token

You have to create an account on https://ruc.conflux.pe

Use

const rucPeru = require('ruc-peru');

(async function(){
	const TOKEN = 'XXXXXX';
	const client = new rucPeru(TOKEN);

	const ruc = await client.ruc('20100128056');
	const dni = await client.dni('06477277');
	const afp = await client.afp();

	console.log({ ruc, dni, afp });
})();

Explicit token

You can configure process.env.RUC_TOKEN as your default token. In that case, it's no longer require the token on instance declaration.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.3
    11
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.3
    11
  • 1.1.2
    0
  • 1.1.1
    0
  • 1.1.0
    0

Package Sidebar

Install

npm i ruc-peru

Weekly Downloads

11

Version

1.1.3

License

ISC

Unpacked Size

40.6 kB

Total Files

6

Last publish

Collaborators

  • confluxpe