Posts by FireEagle • 129 points
6 posts
-
3
votes1
answer249
viewsQ: How do I "hide" the key to an API before putting the project into Github?
I’m creating a project for a website that uses the Unsplash API (which returns images). The problem is: if I add the call to the API in the remote repository, mine client_id will be exposed as the…
-
1
votes1
answer474
viewsQ: Should I upload the package-lock.json file to github?
I know the folder node_modules should not be sent to the github, then add it to the file .gitignore... but what about the file package-lock.json q have a lot of information? It is safe to send it to…
-
2
votes1
answer208
viewsA: Problems with HTML indentation using Prettier in VSC?
Solved The problem was q had several formatting patterns available to make the indentation installed on my VSC, and he couldn’t pick one. I pressed ctrl + shift + F (in the HTML file), then VSC…
-
1
votes1
answer208
viewsQ: Problems with HTML indentation using Prettier in VSC?
Can anyone tell me why the indentation of Prettier (extension of VSC) is not working in HTML file, configured to indent with 4 spaces, works in CSS and in the JS, but does not work in the HTML. How…
-
4
votes2
answers68
viewsQ: Can’t print objects using template string?
Why doesn’t string template print objects correctly? I have the following test code: const obj = { a: 1, b: 2, c: 3,} console.log(`Novo Obj ${obj}`) and the result on the console comes out as: Novo…
javascriptasked FireEagle 129 -
-2
votes3
answers639
viewsQ: How to stop the execution of a code in the nodemon?
Qd I want to run something using the nodemon I type in the terminal nodemon nomeDoArquivo.js, blz, but and qd I want to stop the execution? Pq qd is a code tp timer for example, the run does not…