VNDB fork of mithril.js
Find a file
Már Örlygsson 2794ceb76f [ospec] Make the default reporting nicer looking (#2147)
* feat(ospec): Add spacing before report results

...sometimes tested code emits console.log() messages
which then blend in with ospec's report

* feat(ospec): Reword and prettify the report messages

* feat(ospec): Make console.errors more compact, yet more readable

* docs(ospec): Update change-log.md

* fix(ospec): Fix grammar when number of assertions is 1

* feat(ospec): Make "all passed" message bright green

* refactor(ospec): define `cStyle()` helper for browser styling

* feat(ospec): Use en-dashes for the horizontal divider

* feat(ospec): Revert stacktrace coloring, make context bright red

...and add extra newline above each error - for readability
in commandline (node.js) mode

* feat(ospec): Improve the only-test-passed message

"1 assertion passed" --> "The 1 assertion passed"

* docs: Update LOC count
2018-05-22 18:19:54 +02:00
.github Disown myself from render-related fixes [ci skip] 2018-04-20 20:08:31 -04:00
api Correct test scripts 2017-12-30 04:44:00 -05:00
bundler fix: Bundler tests only pass when run from project root 2018-04-22 00:50:09 +02:00
docs stream: Removed valueOf & toString methods (fixes #2150) (#2151) 2018-05-16 00:01:30 +02:00
examples Prevent create empty item 2017-05-01 13:27:22 +01:00
module lint 2016-09-23 22:49:20 -04:00
ospec [ospec] Make the default reporting nicer looking (#2147) 2018-05-22 18:19:54 +02:00
performance Remove the DOM nodes recycling pool (fix #1653, fix #2023) 2018-04-16 09:45:45 +02:00
promise Better tests for Promise.prototype.finally 2018-02-20 00:27:39 +01:00
querystring allow array data in m.request 2017-01-23 18:03:33 -05:00
render Small optimization in render hyperscript.js (#2064) 2018-05-18 20:48:56 +02:00
request Lint: Fix quotes in m.request tests (#2033) 2017-11-29 21:39:35 +01:00
router "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
stream stream: Removed valueOf & toString methods (fixes #2150) (#2151) 2018-05-16 00:01:30 +02:00
test-utils [DOM Mock] Fix insertBefore when the reference node follows the moving child in a nodeList 2018-04-23 13:52:03 +02:00
tests Correct test scripts 2017-12-30 04:44:00 -05:00
util don't return from withAttr 2017-01-23 18:09:06 -05:00
.deploy.enc Set up repo for travis commits (#1210) 2016-08-04 09:58:28 -07:00
.editorconfig clean up repo 2017-01-30 11:18:47 -05:00
.eslintignore docs: readme rework (#1898) 2017-07-12 20:34:45 -07:00
.eslintrc.js Revert eslintrc change, return Promise instead of using async/await 2017-10-28 18:32:58 -04:00
.gitattributes Missed a word [skip ci] 2017-07-22 03:16:27 -04:00
.gitignore "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
.npmignore Update package lockfile and danger/lint-staged 2017-08-25 02:59:38 -04:00
.travis.yml [chore] remove Danger for now 2018-05-16 01:09:49 +02:00
browser.js "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
hyperscript.js "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
index.js Separate Promise implementation from polyfilling 2018-02-19 23:33:32 +01:00
LICENSE docs: Adding license file. (#1583) 2017-02-01 09:25:00 -08:00
mithril.js Bundled output for commit 6097cfb2e9 [skip ci] 2018-05-18 18:50:40 +00:00
mithril.min.js Bundled output for commit 6097cfb2e9 [skip ci] 2018-05-18 18:50:40 +00:00
mount.js "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
package-lock.json [chore] remove Danger for now 2018-05-16 01:09:49 +02:00
package.json [chore] remove Danger for now 2018-05-16 01:09:49 +02:00
README.md Bundled output for commit 6097cfb2e9 [skip ci] 2018-05-18 18:50:40 +00:00
redraw.js "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
render.js "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
request.js "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
route.js "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
stream.js "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00

mithril.js NPM Version NPM License NPM Downloads

Build Status Gitter

What is Mithril?

A modern client-side Javascript framework for building Single Page Applications. It's small (8.29 KB gzipped), fast and provides routing and XHR utilities out of the box.

Mithril is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍.

Browsers all the way back to IE9 are supported, no polyfills required 👌.

Installation

CDN

<script src="https://unpkg.com/mithril"></script>

npm

$ npm install mithril

The "Getting started" guide is a good place to start learning how to use mithril.

Documentation

Documentation lives on mithril.js.org.

You may be interested in the API Docs, a Simple Application, or perhaps some Examples.

Getting Help

Mithril has an active & welcoming community on Gitter, or feel free to ask questions on Stack Overflow using the mithril.js tag.

Contributing

There's a Contributing FAQ on the mithril site that hopefully helps, but if not definitely hop into the Gitter Room and ask away!


Thanks for reading!

🎁