Skip to content

Instantly share code, notes, and snippets.

@zerobugs-oficial
Created June 19, 2020 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zerobugs-oficial/3190c1ac9444d7af9632fd8dd5b47bdc to your computer and use it in GitHub Desktop.
Save zerobugs-oficial/3190c1ac9444d7af9632fd8dd5b47bdc to your computer and use it in GitHub Desktop.
Criando e lendo nosso primeiro arquivo INI - 5
const fs = require('fs');
const ini = require('ini');
const animaisConfig = ini.parse(fs.readFileSync('./animais.ini', 'utf-8'));
const nomeAnimais = animaisConfig.animais.nomes;
console.log(nomeAnimais);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment