From b2b0c4abe30279c9a9a21073af8a2166e2c18466 Mon Sep 17 00:00:00 2001 From: Patrik Johnson Date: Sun, 30 Aug 2020 19:17:27 +0300 Subject: [PATCH] Installation docs: Add link to flems playground and replace shorthand w/ with full word --- docs/installation.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 53861917b..05cd5eb2e 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -4,11 +4,11 @@ Instructions on how to install Mithril.js # Installation -- [CDN](#cdn) +- [CDN and online playground](#cdn) - [npm](#npm) - [Quick start with Webpack](#quick-start-with-webpack) -### CDN +### CDN and online playground If you're new to JavaScript or just want a very simple setup to get your feet wet, you can get Mithril.js from a [CDN](https://en.wikipedia.org/wiki/Content_delivery_network): @@ -16,6 +16,8 @@ If you're new to JavaScript or just want a very simple setup to get your feet we ``` +If you would like to try out mithril without setting up a local environment, you can easily use an online playground at [flems.io/mithril](https://flems.io/mithril). + --- ### npm @@ -97,7 +99,7 @@ Then, you could remove the import line from step 4 (don't forget to restart Webp For production-level projects, the recommended way of installing Mithril.js is to use npm. -npm is the default package manager that is bundled w/ Node.js. It is widely used as the package manager for both client-side and server-side libraries in the JavaScript ecosystem. Download and install [Node](https://nodejs.org); npm is bundled with that and installed alongside it. +npm is the default package manager that is bundled with Node.js. It is widely used as the package manager for both client-side and server-side libraries in the JavaScript ecosystem. Download and install [Node](https://nodejs.org); npm is bundled with that and installed alongside it. To use Mithril.js via npm, go to your project folder, and run `npm init --yes` from the command line. This will create a file called `package.json`.