Giter VIP home page Giter VIP logo

cdnall's Introduction

CDN All

Unified CDN server with all the package versions from top public CDN's plus bundling

Standardized naming and straight CDN access for development or production without having to check each service to see if it has the package you're after.

Project Replaced by Pakr

It acts as a public CDN redirect or local cache of a public CDN, NPM, GitHub and Bower packages so you can simplify or ignore the backend chain while developing your front end.

Optional github, npm and bower packages.

Usage

  • PACKAGE_NAME default file for the latest version of the package
<script src="//cdn.yie.me/bootstrap"></script>
  • PACKAGE_NAME@VERSION default file for a specific version of the package
<script src="//cdn.yie.me/[email protected]"></script>
  • PACKAGE is PACKAGE_NAME || PACKAGE_NAME@VERSION

  • BUNDLE is a series of PACKAGEs of the same kind seperated by ,

<!-- type detected from main file of the first entry listed -->
<link href="//cdn.yie.me/font-awesome;bootstrap" rel="stylesheet" type="text/css"></script>
  • PACK is a PACKAGE || BUNDLE and will redirect to PACK/ for proper subfile loading
  • PACK/.EXT first file in list with same EXTension, ex: [email protected]/.js || bootstrap/.min.css
<!-- override type detected from first package -->
<link href="//cdn.yie.me/bootstrap;font-awesome/.min.css" rel="stylesheet" type="text/css"></script>
  • PACK/filename specific file in the package

  • PACK.json PACK details

  • PACK.min.json Minified PACK details

REDIRECT

  • ~PACKAGE Redirect to upstream CDN

FORM Packaged FORMat. b=[b]rowserify, r=[r]equirejs, c=[c]ommonjs, a=[a]mp, g=[g]lobal, u=[u]mp

  • [!][~][SERVICE[-FORM]:]PACK[@VERSION][;...]

SPECIALITY

  • ! active debugging (alert()), otherwise /* error messages */ for .css && .js
  • ~ CDN redirect for an individual package
  • bower[-FORM]:package[@version] package from bower
  • npm[-FORM]:package[@version] package from npm
  • gh[-FORM]:owner/package[@version] package from github
  • CDN:package[@version] package from a particular CDN
  • SWATCH:bootstrap
  • fa:icon,list[@version] just the needed Font Awesome icons
  • fi:icon,list[@version] just the needed Foundation Icons
  • md:icon,list[@version] just the needed Material Design icons
  • devicon:icon,list[@version] just the needed devicons icons
  • flag:country,list[@version] just the needed Flag Icon icons
  • bootstrap:class,list[@version] just the needed bootstrap components

SEARCH module

  • api/package/:package details for a particular package
  • api/latest/:search list of packages that contain :search with latest versions
  • api/versions/:search list of packages that contain :search with versions
  • api/find/:search packages that contain :search

Install

npm i cdnall

Serve

PORT=8080 FIREBASE=name:pub,path:cdn npm start

To Do

License: MIT

cdnall's People

Contributors

yieme avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.