@@ -49,24 +49,26 @@ If you want to handle syntax trees manually, use this. For an easier time proces
49
49
50
50
This package is [ ESM only] [ esm ] .
51
51
52
+ In Node.js (version 18+) with [ yarn] [ yarn ] :
53
+
52
54
``` sh
53
55
yarn add @flex-development/docast-util-from-docs
54
56
yarn add -D @flex-development/docast @types/mdast @types/unist micromark-util-types
55
57
```
56
58
57
- From Git:
58
-
59
- ``` sh
60
- yarn add @flex-development/docast-util-from-docs@flex-development/docast-util-from-docs
61
- ```
62
-
63
59
<blockquote >
64
60
<small >
65
61
See <a href='https://yarnpkg.com/protocol/git'>Git - Protocols | Yarn</a>
66
- for details on requesting a specific branch, commit, or tag .
62
+ for details regarding installing from Git .
67
63
</small >
68
64
</blockquote >
69
65
66
+ In Deno with [ ` esm.sh ` ] [ esmsh ] :
67
+
68
+ ``` ts
69
+ import { fromDocs } from ' https://esm.sh/@flex-development/docast-util-from-docs'
70
+ ```
71
+
70
72
## Use
71
73
72
74
Say we have the following TypeScript file ` fibonacci-sequence.ts ` :
@@ -380,6 +382,7 @@ See [`CONTRIBUTING.md`](CONTRIBUTING.md).
380
382
[ docast ] : https://github.com/flex-development/docast
381
383
[ docblock ] : https://github.com/flex-development/docast#docblock-comment
382
384
[ esm ] : https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
385
+ [ esmsh ] : https://esm.sh/
383
386
[ mdast-code ] : https://github.com/syntax-tree/mdast#code
384
387
[ mdast-util-extension ] : https://github.com/syntax-tree/mdast-util-from-markdown#extension
385
388
[ mdast-util-from-markdown ] : https://github.com/syntax-tree/mdast-util-from-markdown
@@ -388,3 +391,4 @@ See [`CONTRIBUTING.md`](CONTRIBUTING.md).
388
391
[ typescript ] : https://www.typescriptlang.org
389
392
[ unified ] : https://github.com/unifiedjs/unified
390
393
[ vfile ] : https://github.com/vfile/vfile#api
394
+ [ yarn ] : https://yarnpkg.com
0 commit comments