Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Mar 10, 2021
1 parent 7c8b5f3 commit 04e0f58
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -44,17 +45,8 @@ Yields:
'arccos',
'arccosh',
'arccot',
'arccoth',
'arccsc',
'arccsch',
'arcsec',
'arcsech',
'arcsin',
'arcsinh',
'arctan',
'arctanh',
'arg',
'bind' ]
'arccoth'
]
```

## API
Expand All @@ -64,7 +56,7 @@ There is no default export.

### `mathmlTagNames`

`Array.<string>` — List of lowercase tag names.
`string[]` — List of lowercase tag names.

## Related

Expand Down

0 comments on commit 04e0f58

Please sign in to comment.