Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I upload to cdnjs?

Tags:

javascript

cdn

How do I upload to cdnjs? I have no clue and no experience with git.

I have a file that I want to upload to cdnjs. Do I have to download something. Can someone walk me through what I have to do?

like image 949
Nabil Hayek Avatar asked Jul 08 '17 00:07

Nabil Hayek


People also ask

What is Cdnjs used for?

In a nutshell, CDNJS is a free distributed JS library delivery service that you can use to host your JS dependencies/libraries outside of your server. Using its robust cloud network delivery and storage service, CDNJS will deliver all JS libraries you use on your websites or web applications to your users.

What is Cdnjs Cloudflare com?

cdnjs.cloudflare.com is an ultra-fast, reliable, globally available content delivery network for open-source libraries. Cloudflare works with the maintainers of the cdnjs project and distributes the latest versions as they are released.


1 Answers

You can't just "upload" a single file to cdnjs.

Read CDNJS contributing document, in particular, for library even to be considered:

  • [...] please make sure it's not a personal project, we have a basic requirement for the popularity, like 100 stars on GitHub or 500 downloads/month on npm registry.
  • The new library must have at least one officially public accessable repository and open source license.

When you have that covered, you can create a pull request for your library to be included in cdnjs's master GitHub repo.

like image 95
randomir Avatar answered Sep 28 '22 08:09

randomir