Created
June 19, 2020 19:48
-
-
Save zerobugs-oficial/3190c1ac9444d7af9632fd8dd5b47bdc to your computer and use it in GitHub Desktop.
Criando e lendo nosso primeiro arquivo INI - 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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