From 0eef63baa8a7925483ded53026e1b67305b68498 Mon Sep 17 00:00:00 2001 From: atomiks Date: Thu, 4 Jan 2018 01:50:12 +1100 Subject: [PATCH] Update README-start.md --- static-parts/README-start.md | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/static-parts/README-start.md b/static-parts/README-start.md index 676c99e48..34775afdc 100644 --- a/static-parts/README-start.md +++ b/static-parts/README-start.md @@ -5,7 +5,7 @@ [![License](https://img.shields.io/badge/license-CC0--1.0-blue.svg)](https://github.com/Chalarangelo/30-seconds-of-code/blob/master/LICENSE) [![Gitter chat](https://img.shields.io/badge/chat-on%20gitter-4FB999.svg)](https://gitter.im/30-seconds-of-code/Lobby) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com) [![Travis Build](https://travis-ci.org/Chalarangelo/30-seconds-of-code.svg?branch=master)](https://travis-ci.org/Chalarangelo/30-seconds-of-code) [![Insight.io](https://img.shields.io/badge/insight.io-Ready-brightgreen.svg)](https://insight.io/github.com/Chalarangelo/30-seconds-of-code/tree/master/?source=0) [![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg)](https://github.com/Flet/semistandard) [![ProductHunt](https://img.shields.io/badge/producthunt-vote-orange.svg)](https://www.producthunt.com/posts/30-seconds-of-code) -> Curated collection of useful Javascript snippets that you can understand in 30 seconds or less. +> Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less. - Use Ctrl + F or command + F to search for a snippet. @@ -16,17 +16,32 @@ #### Package +⚠️ **WARNING:** Snippets are not production ready. + You can find a package with all the snippets on [npm](https://www.npmjs.com/package/30-seconds-of-code). ``` npm install 30-seconds-of-code ``` -⚠️ **WARNING:** Snippets are not production ready. +CDN links +- [ES2017 Full (UMD)](https://unpkg.com/30-seconds-of-code) +- [ES5 Minified (UMD)](https://unpkg.com/30-seconds-of-code/dist/_30s.es5.min.js)
- -To import the whole module: + +**Browser** + +> IMPORTANT: replace the `src` with the full version link and desired target spec (such as ES5 minified)): + +```html + + +``` + +**Node** ```js // CommonJS