From 04e0f58dc42ddac75095c8f3c5ba457193c4a9e6 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 10 Mar 2021 11:59:31 +0100 Subject: [PATCH] Fix readme --- readme.md | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/readme.md b/readme.md index 881156c..80cf516 100644 --- a/readme.md +++ b/readme.md @@ -25,17 +25,18 @@ npm install mathml-tag-names ## Use ```js -var mathmlTagNames = require('mathml-tag-names') +import {mathmlTagNames} from 'mathml-tag-names' -console.log(mathmlTagNames.length) // => 202 +console.log(mathmlTagNames.length) // => 189 -console.log(mathmlTagNames.slice(0, 20)) +console.log(mathmlTagNames.slice(0, 10)) ``` Yields: ```js -[ 'abs', +[ + 'abs', 'and', 'annotation', 'annotation-xml', @@ -44,17 +45,8 @@ Yields: 'arccos', 'arccosh', 'arccot', - 'arccoth', - 'arccsc', - 'arccsch', - 'arcsec', - 'arcsech', - 'arcsin', - 'arcsinh', - 'arctan', - 'arctanh', - 'arg', - 'bind' ] + 'arccoth' +] ``` ## API @@ -64,7 +56,7 @@ There is no default export. ### `mathmlTagNames` -`Array.` — List of lowercase tag names. +`string[]` — List of lowercase tag names. ## Related