[{"data":1,"prerenderedAt":906},["ShallowReactive",2],{"en-article-\u002Fen\u002Fblog\u002Fhow-to-use-middlewares-nuxtjs":3,"en-related-posts-\u002Fen\u002Fblog\u002Fhow-to-use-middlewares-nuxtjs":786},{"id":4,"title":5,"articleCover":6,"articleCoverEmbed":7,"articleCoverEmbedUploadDate":7,"articleCoverHeight":8,"articleCoverWidth":9,"authorId":10,"body":11,"categoriesIds":768,"description":771,"enAlternateSlug":772,"extension":773,"meta":774,"navigation":186,"path":775,"ptBrAlternateSlug":776,"publishedAt":777,"seo":778,"sitemap":779,"stem":783,"updatedAt":782,"wordCount":784,"__hash__":785},"blogEn\u002Fen\u002Fblog\u002Fhow-to-use-middlewares-nuxtjs.md","Middlewares: What They Are and How to Use Them in Nuxt.JS","\u002Fimages\u002Fblog\u002Fnuxt\u002Ffront-end-middlewares-thumb.webp",null,720,1280,"thiago-nunes-batista",{"type":12,"value":13,"toc":761},"minimark",[14,19,32,54,57,74,77,81,89,92,95,107,110,114,117,128,145,337,345,546,556,677,680,727,741,746,749,757],[15,16,18],"h2",{"id":17},"what-are-middlewares","What Are Middlewares?",[20,21,22,23,27,28,31],"p",{},"In Front-end development, ",[24,25,26],"strong",{},"Middlewares"," are blocks of code that execute ",[24,29,30],{},"before navigation to a new page occurs",", allowing various controls in our application, such as:",[33,34,35,42,48],"ul",{},[36,37,38,41],"li",{},[24,39,40],{},"Authentication",": Checks if the user is logged in; otherwise, they are redirected to the login screen.",[36,43,44,47],{},[24,45,46],{},"Permission",": Verifies if the user has access to the page; if not, they are redirected to an allowed page.",[36,49,50,53],{},[24,51,52],{},"Logs",": Saves information about page activities.",[20,55,56],{},"Middlewares act as an intermediate layer, working from the start of the page load until its complete rendering.",[20,58,59,60,67,68,73],{},"This middleware functionality is present in modern Front-end frameworks such as ",[61,62,66],"a",{"href":63,"rel":64},"https:\u002F\u002Fnextjs.org",[65],"nofollow","Next.js"," and ",[61,69,72],{"href":70,"rel":71},"https:\u002F\u002Fnuxt.com",[65],"Nuxt.JS",".",[20,75,76],{},"In this article, I will teach you how to implement route middlewares in Nuxt.JS.",[15,78,80],{"id":79},"middlewares-in-a-less-technical-way","Middlewares in a Less Technical Way",[82,83],"img",{":copyright":84,"alt":85,"height":86,"src":87,"width":88},"{\"title\": \"People at a party\", \"licenseId\": \"pexels\", \"author\": {\"name\": \"Cottonbro Studio\", \"url\": \"https:\u002F\u002Fwww.pexels.com\u002Fphoto\u002Fpeople-toasting-wine-glasses-3171837\" }}","people at a party",428,"\u002Fimages\u002Fblog\u002Fpeople\u002Fpexels-cottonbro-3171837.webp",640,[20,90,91],{},"To explain it more simply, let’s use an analogy:",[20,93,94],{},"Imagine you want to enter a party, and in this process, you go through three security staff members, who act as \"middlewares,\" each responsible for a specific action.",[96,97,98,101,104],"ol",{},[36,99,100],{},"The first security guard checks if you have a valid ticket, similar to an authentication middleware. If you don’t have one, you are redirected to the ticket office or login screen.",[36,102,103],{},"The second guard ensures you are of legal age, a crucial requirement for entering the party, similar to a permission middleware. If you don’t meet the criteria, you are sent away.",[36,105,106],{},"The third and final guard gives you a wristband indicating whether you have VIP access, much like middlewares that add data to requests.",[20,108,109],{},"Finally, after passing all these checks, you are free to enter the party hall.",[15,111,113],{"id":112},"types-of-middlewares","Types of Middlewares",[20,115,116],{},"In Nuxt.js, we have the following types of Middlewares:",[33,118,119,122,125],{},[36,120,121],{},"Global",[36,123,124],{},"Inline or Anonymous",[36,126,127],{},"Named",[96,129,130],{},[36,131,132,135,136,140,141,144],{},[24,133,134],{},"Global Middlewares"," are created inside the ",[137,138,139],"code",{},"\u002Fmiddleware"," folder and execute on all pages. The ",[137,142,143],{},"global"," suffix is required.",[146,147,152],"pre",{"className":148,"code":149,"language":150,"meta":151,"style":151},"language-typescript shiki shiki-themes dracula","\u002F*\n  Example of a Global Middleware:\n  This middleware checks if the requested URL\u002Froute exists.\n  If it doesn’t exist, the user is redirected to the links page.\n\n  File Name and Directory:\n  \u002Fmiddleware\u002FnotFound.global.js\n*\u002F\n\nexport default defineNuxtRouteMiddleware((to) => {\n  const hasFoundRoute = to.matched.length > 0;\n\n  if (!hasFoundRoute) {\n    return navigateTo({\n      path: \"\u002Flinks\"\n    });\n  }\n});\n","typescript","",[137,153,154,163,169,175,181,188,194,200,206,211,242,267,272,287,299,319,325,331],{"__ignoreMap":151},[155,156,159],"span",{"class":157,"line":158},"line",1,[155,160,162],{"class":161},"shSDL","\u002F*\n",[155,164,166],{"class":157,"line":165},2,[155,167,168],{"class":161},"  Example of a Global Middleware:\n",[155,170,172],{"class":157,"line":171},3,[155,173,174],{"class":161},"  This middleware checks if the requested URL\u002Froute exists.\n",[155,176,178],{"class":157,"line":177},4,[155,179,180],{"class":161},"  If it doesn’t exist, the user is redirected to the links page.\n",[155,182,184],{"class":157,"line":183},5,[155,185,187],{"emptyLinePlaceholder":186},true,"\n",[155,189,191],{"class":157,"line":190},6,[155,192,193],{"class":161},"  File Name and Directory:\n",[155,195,197],{"class":157,"line":196},7,[155,198,199],{"class":161},"  \u002Fmiddleware\u002FnotFound.global.js\n",[155,201,203],{"class":157,"line":202},8,[155,204,205],{"class":161},"*\u002F\n",[155,207,209],{"class":157,"line":208},9,[155,210,187],{"emptyLinePlaceholder":186},[155,212,214,218,221,225,229,233,236,239],{"class":157,"line":213},10,[155,215,217],{"class":216},"s0Tla","export",[155,219,220],{"class":216}," default",[155,222,224],{"class":223},"sAOxA"," defineNuxtRouteMiddleware",[155,226,228],{"class":227},"sCdxs","((",[155,230,232],{"class":231},"sGEwX","to",[155,234,235],{"class":227},") ",[155,237,238],{"class":216},"=>",[155,240,241],{"class":227}," {\n",[155,243,245,248,251,254,257,260,264],{"class":157,"line":244},11,[155,246,247],{"class":216},"  const",[155,249,250],{"class":227}," hasFoundRoute ",[155,252,253],{"class":216},"=",[155,255,256],{"class":227}," to.matched.length ",[155,258,259],{"class":216},">",[155,261,263],{"class":262},"sIQBb"," 0",[155,265,266],{"class":227},";\n",[155,268,270],{"class":157,"line":269},12,[155,271,187],{"emptyLinePlaceholder":186},[155,273,275,278,281,284],{"class":157,"line":274},13,[155,276,277],{"class":216},"  if",[155,279,280],{"class":227}," (",[155,282,283],{"class":216},"!",[155,285,286],{"class":227},"hasFoundRoute) {\n",[155,288,290,293,296],{"class":157,"line":289},14,[155,291,292],{"class":216},"    return",[155,294,295],{"class":223}," navigateTo",[155,297,298],{"class":227},"({\n",[155,300,302,305,308,312,316],{"class":157,"line":301},15,[155,303,304],{"class":227},"      path",[155,306,307],{"class":216},":",[155,309,311],{"class":310},"seVfx"," \"",[155,313,315],{"class":314},"s-mGx","\u002Flinks",[155,317,318],{"class":310},"\"\n",[155,320,322],{"class":157,"line":321},16,[155,323,324],{"class":227},"    });\n",[155,326,328],{"class":157,"line":327},17,[155,329,330],{"class":227},"  }\n",[155,332,334],{"class":157,"line":333},18,[155,335,336],{"class":227},"});\n",[96,338,339],{"start":165},[36,340,341,344],{},[24,342,343],{},"Inline or Anonymous Middlewares"," are specific to a page, defined directly within the Nuxt page file. This limits code reuse since it cannot be easily shared with other pages.",[146,346,350],{"className":347,"code":348,"language":349,"meta":151,"style":151},"language-js shiki shiki-themes dracula","\u002F*\n  Example of an Inline Middleware:\n  This middleware checks if data is present in the store.\n  If not, the data is requested.\n*\u002F\n\n\u003Cscript setup lang=\"ts\">\nimport { useStore } from 'vuex';\n\ndefinePageMeta({\n  middleware: [\n    async function (to, from) {\n      const store = useStore();\n      if (!store.state.user) {\n        await store.dispatch(\"fetchUser\");\n      }\n    },\n  ],\n});\n\u003C\u002Fscript>\n","js",[137,351,352,356,361,366,371,375,379,407,424,428,436,441,462,478,490,514,519,524,529,536],{"__ignoreMap":151},[155,353,354],{"class":157,"line":158},[155,355,162],{"class":161},[155,357,358],{"class":157,"line":165},[155,359,360],{"class":161},"  Example of an Inline Middleware:\n",[155,362,363],{"class":157,"line":171},[155,364,365],{"class":161},"  This middleware checks if data is present in the store.\n",[155,367,368],{"class":157,"line":177},[155,369,370],{"class":161},"  If not, the data is requested.\n",[155,372,373],{"class":157,"line":183},[155,374,205],{"class":161},[155,376,377],{"class":157,"line":190},[155,378,187],{"emptyLinePlaceholder":186},[155,380,381,384,387,391,394,396,399,402,404],{"class":157,"line":196},[155,382,383],{"class":227},"\u003C",[155,385,386],{"class":216},"script",[155,388,390],{"class":389},"sY_PY"," setup",[155,392,393],{"class":389}," lang",[155,395,253],{"class":216},[155,397,398],{"class":310},"\"",[155,400,401],{"class":314},"ts",[155,403,398],{"class":310},[155,405,406],{"class":227},">\n",[155,408,409,412,415,418,421],{"class":157,"line":202},[155,410,411],{"class":227},"import ",[155,413,414],{"class":216},"{",[155,416,417],{"class":227}," useStore ",[155,419,420],{"class":216},"}",[155,422,423],{"class":227}," from 'vuex';\n",[155,425,426],{"class":157,"line":208},[155,427,187],{"emptyLinePlaceholder":186},[155,429,430,433],{"class":157,"line":213},[155,431,432],{"class":227},"definePageMeta(",[155,434,435],{"class":216},"{\n",[155,437,438],{"class":157,"line":244},[155,439,440],{"class":227},"  middleware: [\n",[155,442,443,446,449,451,453,456,459],{"class":157,"line":269},[155,444,445],{"class":216},"    async",[155,447,448],{"class":216}," function",[155,450,280],{"class":227},[155,452,232],{"class":231},[155,454,455],{"class":227},", ",[155,457,458],{"class":231},"from",[155,460,461],{"class":227},") {\n",[155,463,464,467,470,472,475],{"class":157,"line":274},[155,465,466],{"class":216},"      const",[155,468,469],{"class":227}," store ",[155,471,253],{"class":216},[155,473,474],{"class":223}," useStore",[155,476,477],{"class":227},"();\n",[155,479,480,483,485,487],{"class":157,"line":289},[155,481,482],{"class":216},"      if",[155,484,280],{"class":227},[155,486,283],{"class":216},[155,488,489],{"class":227},"store.state.user) {\n",[155,491,492,495,498,501,504,506,509,511],{"class":157,"line":301},[155,493,494],{"class":216},"        await",[155,496,497],{"class":227}," store.",[155,499,500],{"class":223},"dispatch",[155,502,503],{"class":227},"(",[155,505,398],{"class":310},[155,507,508],{"class":314},"fetchUser",[155,510,398],{"class":310},[155,512,513],{"class":227},");\n",[155,515,516],{"class":157,"line":321},[155,517,518],{"class":227},"      }\n",[155,520,521],{"class":157,"line":327},[155,522,523],{"class":227},"    },\n",[155,525,526],{"class":157,"line":333},[155,527,528],{"class":227},"  ],\n",[155,530,532,534],{"class":157,"line":531},19,[155,533,420],{"class":216},[155,535,513],{"class":227},[155,537,539,542,544],{"class":157,"line":538},20,[155,540,541],{"class":227},"\u003C\u002F",[155,543,386],{"class":216},[155,545,406],{"class":227},[96,547,548],{"start":171},[36,549,550,135,553,555],{},[24,551,552],{},"Named Middlewares",[137,554,139],{}," folder.",[146,557,559],{"className":347,"code":558,"language":349,"meta":151,"style":151},"\u002F*\n  Example of a Named Middleware:\n  This middleware checks if the user is logged in.\n  If not, they are redirected to the login page.\n\n  File Name and Directory:\n  \u002Fmiddleware\u002Fauth.js\n*\u002F\n\nexport default defineNuxtRouteMiddleware((to, from) => {\n  const { $store } = useNuxtApp();\n\n  if (!$store.auth?.loggedIn) {\n    return navigateTo(\"\u002Flogin\");\n  }\n});\n",[137,560,561,565,570,575,580,584,588,593,597,601,623,637,641,652,669,673],{"__ignoreMap":151},[155,562,563],{"class":157,"line":158},[155,564,162],{"class":161},[155,566,567],{"class":157,"line":165},[155,568,569],{"class":161},"  Example of a Named Middleware:\n",[155,571,572],{"class":157,"line":171},[155,573,574],{"class":161},"  This middleware checks if the user is logged in.\n",[155,576,577],{"class":157,"line":177},[155,578,579],{"class":161},"  If not, they are redirected to the login page.\n",[155,581,582],{"class":157,"line":183},[155,583,187],{"emptyLinePlaceholder":186},[155,585,586],{"class":157,"line":190},[155,587,193],{"class":161},[155,589,590],{"class":157,"line":196},[155,591,592],{"class":161},"  \u002Fmiddleware\u002Fauth.js\n",[155,594,595],{"class":157,"line":202},[155,596,205],{"class":161},[155,598,599],{"class":157,"line":208},[155,600,187],{"emptyLinePlaceholder":186},[155,602,603,605,607,609,611,613,615,617,619,621],{"class":157,"line":213},[155,604,217],{"class":216},[155,606,220],{"class":216},[155,608,224],{"class":223},[155,610,228],{"class":227},[155,612,232],{"class":231},[155,614,455],{"class":227},[155,616,458],{"class":231},[155,618,235],{"class":227},[155,620,238],{"class":216},[155,622,241],{"class":227},[155,624,625,627,630,632,635],{"class":157,"line":244},[155,626,247],{"class":216},[155,628,629],{"class":227}," { $store } ",[155,631,253],{"class":216},[155,633,634],{"class":223}," useNuxtApp",[155,636,477],{"class":227},[155,638,639],{"class":157,"line":269},[155,640,187],{"emptyLinePlaceholder":186},[155,642,643,645,647,649],{"class":157,"line":274},[155,644,277],{"class":216},[155,646,280],{"class":227},[155,648,283],{"class":216},[155,650,651],{"class":227},"$store.auth?.loggedIn) {\n",[155,653,654,656,658,660,662,665,667],{"class":157,"line":289},[155,655,292],{"class":216},[155,657,295],{"class":223},[155,659,503],{"class":227},[155,661,398],{"class":310},[155,663,664],{"class":314},"\u002Flogin",[155,666,398],{"class":310},[155,668,513],{"class":227},[155,670,671],{"class":157,"line":301},[155,672,330],{"class":227},[155,674,675],{"class":157,"line":321},[155,676,336],{"class":227},[20,678,679],{},"For Named Middlewares, you need to specify which pages use a particular middleware. One way to do this is by modifying the page files that will utilize the middleware:",[146,681,683],{"className":347,"code":682,"language":349,"meta":151,"style":151},"\u003Cscript setup>\ndefinePageMeta({\n  middleware: \"auth-admin\"\n});\n\u003C\u002Fscript>\n",[137,684,685,695,701,713,719],{"__ignoreMap":151},[155,686,687,689,691,693],{"class":157,"line":158},[155,688,383],{"class":227},[155,690,386],{"class":216},[155,692,390],{"class":389},[155,694,406],{"class":227},[155,696,697,699],{"class":157,"line":165},[155,698,432],{"class":227},[155,700,435],{"class":216},[155,702,703,706,708,711],{"class":157,"line":171},[155,704,705],{"class":227},"  middleware: ",[155,707,398],{"class":310},[155,709,710],{"class":314},"auth-admin",[155,712,318],{"class":310},[155,714,715,717],{"class":157,"line":177},[155,716,420],{"class":216},[155,718,513],{"class":227},[155,720,721,723,725],{"class":157,"line":183},[155,722,541],{"class":227},[155,724,386],{"class":216},[155,726,406],{"class":227},[20,728,729,730,733,734,737,738,73],{},"It’s also important to note that even if you name middleware files using ",[137,731,732],{},"PascalCase"," or ",[137,735,736],{},"camelCase",", file names are normalized to ",[137,739,740],{},"kebab-case",[742,743,745],"h3",{"id":744},"conclusion","Conclusion",[20,747,748],{},"I hope this article has helped you understand the key points of creating and using Middlewares in Nuxt.JS in a simple and quick way 🙋🏻‍♂️.",[20,750,751,752,73],{},"If you need more information about Middlewares in Nuxt.JS, you can check the ",[61,753,756],{"href":754,"rel":755},"https:\u002F\u002Fnuxt.com\u002Fdocs\u002Fguide\u002Fdirectory-structure\u002Fmiddleware",[65],"official documentation",[758,759,760],"style",{},"html pre.shiki code .shSDL, html code.shiki .shSDL{--shiki-default:#6272A4}html pre.shiki code .s0Tla, html code.shiki .s0Tla{--shiki-default:#FF79C6}html pre.shiki code .sAOxA, html code.shiki .sAOxA{--shiki-default:#50FA7B}html pre.shiki code .sCdxs, html code.shiki .sCdxs{--shiki-default:#F8F8F2}html pre.shiki code .sGEwX, html code.shiki .sGEwX{--shiki-default:#FFB86C;--shiki-default-font-style:italic}html pre.shiki code .sIQBb, html code.shiki .sIQBb{--shiki-default:#BD93F9}html pre.shiki code .seVfx, html code.shiki .seVfx{--shiki-default:#E9F284}html pre.shiki code .s-mGx, html code.shiki .s-mGx{--shiki-default:#F1FA8C}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sY_PY, html code.shiki .sY_PY{--shiki-default:#50FA7B;--shiki-default-font-style:italic}",{"title":151,"searchDepth":165,"depth":165,"links":762},[763,764,765],{"id":17,"depth":165,"text":18},{"id":79,"depth":165,"text":80},{"id":112,"depth":165,"text":113,"children":766},[767],{"id":744,"depth":171,"text":745},[769,770],"nuxt","vuejs","Learn what middlewares are and how to use them in Nuxt.js to control navigation, authentication, and permissions on your pages, with examples of each type.","how-to-use-middlewares-nuxtjs","md",{},"\u002Fen\u002Fblog\u002Fhow-to-use-middlewares-nuxtjs","como-usar-middlewares-no-nuxtjs","2025-02-03",{"title":5,"description":771},{"loc":775,"images":780,"lastmod":782},[781],{"loc":87},"2026-10-06","en\u002Fblog\u002Fhow-to-use-middlewares-nuxtjs",470,"2zdrkBknELzfzccjTJU6S8fSLCUeRF9bZPegbB7p50s",[787,796,804,811,818,826,833,841,843,851,857,865,872,878,885,892,900],{"id":788,"path":789,"title":790,"articleCover":791,"categoriesIds":792,"publishedAt":795},"blogEn\u002Fen\u002Fblog\u002Fcore-web-vitals-how-user-experience-affects-seo.md","\u002Fen\u002Fblog\u002Fcore-web-vitals-how-user-experience-affects-seo","Core Web Vitals and SEO: How User Experience Affects Your Site","\u002Fimages\u002Fen\u002Fblog\u002Fseo\u002Fweb-vitals\u002Fcore-web-vitals-how-user-experience-affects-seo.webp",[793,794],"seo","web-vitals","2024-10-25",{"id":797,"path":798,"title":799,"articleCover":800,"categoriesIds":801,"publishedAt":803},"blogEn\u002Fen\u002Fblog\u002Ffree-developer-tools-hub.md","\u002Fen\u002Fblog\u002Ffree-developer-tools-hub","I Built a Free Web Tools Hub for Developers","\u002Fimages\u002Fen\u002Fblog\u002Ftools\u002Ffree-developer-tools-hub.webp",[802],"tools","2026-01-06",{"id":805,"path":806,"title":807,"articleCover":808,"categoriesIds":809,"publishedAt":810},"blogEn\u002Fen\u002Fblog\u002Fhow-the-routing-system-works-in-nuxt.md","\u002Fen\u002Fblog\u002Fhow-the-routing-system-works-in-nuxt","Nuxt Routing: Dynamic, Nested and Catch-All Routes","\u002Fimages\u002Fblog\u002Fnuxt\u002Fnuxt-routing-thumb.webp",[769,770],"2025-03-12",{"id":812,"path":813,"title":814,"articleCover":815,"categoriesIds":816,"publishedAt":817},"blogEn\u002Fen\u002Fblog\u002Fhow-to-add-special-characters-on-i18n.md","\u002Fen\u002Fblog\u002Fhow-to-add-special-characters-on-i18n","How to Add Special Characters in i18N Translations","\u002Fimages\u002Fblog\u002Fi18n\u002Fi18n-special-characters-on-nuxtjs-thumb.webp",[769,770],"2025-02-02",{"id":819,"path":820,"title":821,"articleCover":822,"categoriesIds":823,"publishedAt":825},"blogEn\u002Fen\u002Fblog\u002Fhow-to-create-and-set-up-ssh-key-github.md","\u002Fen\u002Fblog\u002Fhow-to-create-and-set-up-ssh-key-github","SSH Key in Git: How to Set Up an SSH Key for GitHub","\u002Fimages\u002Fen\u002Fblog\u002Fgit\u002Fhow-to-create-and-set-up-ssh-key-github-thumb.webp",[824],"git","2025-02-04",{"id":827,"path":828,"title":829,"articleCover":830,"categoriesIds":831,"publishedAt":832},"blogEn\u002Fen\u002Fblog\u002Fhow-to-create-structured-data-with-nuxtjs.md","\u002Fen\u002Fblog\u002Fhow-to-create-structured-data-with-nuxtjs","What is Structured Data and How to Add it in Nuxt.JS","\u002Fimages\u002Fen\u002Fblog\u002Fseo\u002Fstructured-data\u002Fstructured-data-thumb-1.webp",[769,770,793],"2025-01-22",{"id":834,"path":835,"title":836,"articleCover":837,"categoriesIds":838,"publishedAt":840},"blogEn\u002Fen\u002Fblog\u002Fhow-to-deal-with-envy-from-other-programmers.md","\u002Fen\u002Fblog\u002Fhow-to-deal-with-envy-from-other-programmers","How to Deal with Envy from Other Programmers in Your Career","\u002Fimages\u002Fen\u002Fblog\u002Fcareer\u002Fa-nail-that-stands-out-gets-hammered.webp",[839],"career","2025-08-29",{"id":4,"path":775,"title":5,"articleCover":6,"categoriesIds":842,"publishedAt":777},[769,770],{"id":844,"path":845,"title":846,"articleCover":847,"categoriesIds":848,"publishedAt":850},"blogEn\u002Fen\u002Fblog\u002Fhow-to-validate-cpf-with-javascript.md","\u002Fen\u002Fblog\u002Fhow-to-validate-cpf-with-javascript","How to validate a CPF with JavaScript","\u002Fimages\u002Fen\u002Fblog\u002Fjavascript\u002Fhow-to-validate-cpf-with-javascript.webp",[849,802],"javascript","2026-10-04",{"id":852,"path":853,"title":854,"articleCover":855,"categoriesIds":856,"publishedAt":850},"blogEn\u002Fen\u002Fblog\u002Fhow-to-validate-credit-card-with-javascript.md","\u002Fen\u002Fblog\u002Fhow-to-validate-credit-card-with-javascript","How to validate a credit card with JavaScript (Luhn algorithm)","\u002Fimages\u002Fen\u002Fblog\u002Fjavascript\u002Fhow-to-validate-credit-card-with-javascript.webp",[849,802],{"id":858,"path":859,"title":860,"articleCover":861,"categoriesIds":862,"publishedAt":864},"blogEn\u002Fen\u002Fblog\u002Frecovering-lost-files-in-git-with-vscode.md","\u002Fen\u002Fblog\u002Frecovering-lost-files-in-git-with-vscode","Recover Lost Files in Git Without a Commit Using VS Code Local History","\u002Fimages\u002Fen\u002Fblog\u002Fvscode\u002Fhow-to-recover-lost-files-in-git-using-vscode.webp",[824,863],"vscode","2025-01-21",{"id":866,"path":867,"title":868,"articleCover":869,"categoriesIds":870,"publishedAt":871},"blogEn\u002Fen\u002Fblog\u002Fvercel-buys-nuxt-labs.md","\u002Fen\u002Fblog\u002Fvercel-buys-nuxt-labs","Vercel Acquired Nuxt Labs! What Does This Mean for Nuxt?","\u002Fimages\u002Fen\u002Fblog\u002Fnuxt\u002Fvercel-buys-nuxt-labs.webp",[769],"2025-07-17",{"id":873,"path":874,"title":875,"articleCover":876,"categoriesIds":877,"publishedAt":782},"blogEn\u002Fen\u002Fblog\u002Fvue-vapor-mode-what-it-is-and-how-to-use-it.md","\u002Fen\u002Fblog\u002Fvue-vapor-mode-what-it-is-and-how-to-use-it","Vue Vapor Mode: what it is and what changes in Vue 3.6","\u002Fimages\u002Fen\u002Fblog\u002Fvue\u002Fvue-vapor-mode-what-it-is-and-how-to-use-it.webp",[770,769],{"id":879,"path":880,"title":881,"articleCover":882,"categoriesIds":883,"publishedAt":884},"blogEn\u002Fen\u002Fblog\u002Fwhat-are-directives-in-vue-and-how-to-implement-them.md","\u002Fen\u002Fblog\u002Fwhat-are-directives-in-vue-and-how-to-implement-them","Vue 3 Directives: Built-in and Custom","\u002Fimages\u002Fen\u002Fblog\u002Fvue\u002Fwhat-are-directives-in-vue-and-how-to-implement-them.webp",[770],"2025-03-21",{"id":886,"path":887,"title":888,"articleCover":889,"categoriesIds":890,"publishedAt":891},"blogEn\u002Fen\u002Fblog\u002Fwhat-is-the-difference-between-composition-api-and-options-api-in-vuejs.md","\u002Fen\u002Fblog\u002Fwhat-is-the-difference-between-composition-api-and-options-api-in-vuejs","Composition API vs Options API in Vue.js: What's the Difference?","\u002Fimages\u002Fen\u002Fblog\u002Fvue\u002Fwhat-is-the-difference-between-composition-api-and-options-api-in-vuejs.webp",[770],"2025-02-20",{"id":893,"path":894,"title":895,"articleCover":896,"categoriesIds":897,"publishedAt":899},"blogEn\u002Fen\u002Fblog\u002Fwhy-is-javascript-called-javascript.md","\u002Fen\u002Fblog\u002Fwhy-is-javascript-called-javascript","Why Is JavaScript Called JavaScript? The Story Behind the Name","\u002Fimages\u002Fen\u002Fblog\u002Fhistoria-da-programacao\u002Fwhy-is-javascript-called-javascript.webp",[898,849],"historia-da-programacao","2026-11-05",{"id":901,"path":902,"title":903,"articleCover":904,"categoriesIds":905,"publishedAt":899},"blogEn\u002Fen\u002Fblog\u002Fwhy-is-linux-called-linux.md","\u002Fen\u002Fblog\u002Fwhy-is-linux-called-linux","Why Is Linux Called Linux? The Story of Freax, Unix and GNU","\u002Fimages\u002Fen\u002Fblog\u002Fhistoria-da-programacao\u002Fwhy-is-linux-called-linux.webp",[898],1794235532934]