Skip to content

Instantly share code, notes, and snippets.

View Kumawatlalit912's full-sized avatar
🎯
Focusing

Kumawat Lalit Kumawatlalit912

🎯
Focusing
View GitHub Profile
@Kumawatlalit912
Kumawatlalit912 / queryParams.js
Created March 2, 2023 13:08
axios imp query params
axios.get('https://jsonplaceholder.typicode.com/posts?_limit=5')
.then(response => {
const data = response.data;
console.log(data);
})
.catch(error => {
console.error(error);
});
axios.get('https://jsonplaceholder.typicode.com/posts?_limit=5&_sort=title&_order=asc')
@Kumawatlalit912
Kumawatlalit912 / nodejs.txt
Created April 6, 2023 17:22
Install nodejs And Nvm on linux
for nodejs just copy and run below command
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
for nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
then just refresh the bashrc file