BillionaireClubCollc
  • News
  • Notifications
  • Shop
  • Cart
  • Media
  • Advertise with Us
  • Profile
  • Groups
  • Games
  • My Story
  • Chat
  • Contact Us
home shop notifications more
Signin
  •  Profile
  •  Sign Out
Skip to content

Billionaire Club Co LLC

Believe It and You Will Achieve It

Primary Menu
  • Home
  • Politics
  • TSR
  • Anime
  • Michael Jordan vs.Lebron James
  • Crypto
  • Soccer
  • Dating
  • Airplanes
  • Forex
  • Tax
  • New Movies Coming Soon
  • Games
  • CRYPTO INSURANCE
  • Sport
  • MEMES
  • K-POP
  • AI
  • The Bahamas
  • Digital NoMad
  • Joke of the Day
  • RapVerse
  • Stocks
  • SPORTS BETTING
  • Glamour
  • Beauty
  • Travel
  • Celebrity Net Worth
  • TMZ
  • Lotto
  • COVD-19
  • Fitness
  • The Bible is REAL
  • OutDoor Activity
  • Lifestyle
  • Culture
  • Boxing
  • Food
  • LGBTQ
  • Poetry
  • Music
  • Misc
  • Open Source
  • NASA
  • Science
  • Natural & Holstict Med
  • Gardening
  • DYI
  • History
  • Art
  • Education
  • Pets
  • Aliens
  • Astrology
  • Farming and LiveStock
  • LAW
  • Fast & Furious
  • Fishing & Hunting
  • Health
  • Credit Repair
  • Grants
  • All things legal
  • Reality TV
  • Africa Today
  • China Today
  • "DUMB SHIT.."
  • CRYPTO INSURANCE

A 5-Year-Old Could Follow This TypeScript SDK Development Guide ~ Part 5: CDN for Browsers

Helloooooooo!
\
Hope you're doing great! This is SMY! 👋 Let's jump right in 🚀
\
This is Part 5 of our SDK development series where we get a CDN of our SDK
Contents:

⚡ Getting CDN
⚡ Integrating CDN and testing SDK

Step 1: Get a CDN
Head over to https://www.jsdelivr.com/, and search for your NPM package.
\
Choose the default version, and copy the link.
\
Head over to the Test Browser app, and integrate the CDN:
\
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.global.min.js"></script>
</head>
<body>
This is a Test HTML

<script>
sdk.fetchUsers().then((users) => console.log(users));
</script>
</body>
</html>

\
Open the file, and see the result:

\
Step 2: Getting the Latest CDN Version Always
Put @latest instead of the version to always fetch the latest CDN version
\
https://cdn.jsdelivr.net/npm/ts-lib-template-starter@latest/dist/index.global.min.js
\
Sometimes, when a new version of SDK is published, jsDeliver takes a few minutes to a few days to point @latest version to the updated version.
\
To fix this, when you publish a new version, head over to https://www.jsdelivr.com/tools/purge, and enter the link of the CDN like:
\

This will purge the cache and point @latest version to the updated version.
Wrapping Up:
We just completed the steps to get a CDN of our SDK.
\
Stay tuned for further parts to dive deep into SDK development, and explore features like Web Push Notifications, Service Workers, etc. 🚀
…..
Now, you're equipped with the knowledge to publish your own SDK. Happy coding! 🚀
\
That's it, folks!
\
Hope it was a good read for you. Thank you! ✨
\
👉 Follow me
GitHub
LinkedIn

Welcome to Billionaire Club Co LLC, your gateway to a brand-new social media experience! Sign up today and dive into over 10,000 fresh daily articles and videos curated just for your enjoyment. Enjoy the ad free experience, unlimited content interactions, and get that coveted blue check verification—all for just $1 a month!

Source link

Share
What's your thought on the article, write a comment
0 Comments
×

Sign In to perform this Activity

Sign in
×

Account Frozen

Your account is frozen. You can still view content but cannot interact with it.

Please go to your settings to update your account status.

Open Profile Settings

Ads

  • Premium Billionaire128 Crop Hoodie

    $ 44.00
  • Billionaire128 Liquid Gold Flip-Flops

    $ 18.00
  • Premium Billionaire128 Men’s Athletic Long Shorts

    $ 40.00
  • News Social

    • Facebook
    • Twitter
    • Facebook
    • Twitter
    Copyright © 2024 Billionaire Club Co LLC. All rights reserved