Created
June 19, 2020 19:43
-
-
Save zerobugs-oficial/03ac5a9a099e32e973fea44e25ff8551 to your computer and use it in GitHub Desktop.
Criando e lendo nosso primeiro arquivo INI - 1
This file contains 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 config = ini.parse(fs.readFileSync('./config.ini', 'utf-8')); | |
const website = config.website; | |
console.log(website); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment