Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "runme", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"author": "Christian Bromann <christian@stateful.com>", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -30,3 +30,3 @@ # Runme.js [![Test Changes](https://github.com/stateful/runmejs/actions/workflows/test.yaml/badge.svg)](https://github.com/stateful/runmejs/actions/workflows/test.yaml) [![npm version](https://badge.fury.io/js/runme.svg)](https://badge.fury.io/js/runme) [![deno module](https://shield.deno.dev/x/runme)](https://deno.land/x/runme) | ||
You can import the module directly from the Deno module hosting service via `https://deno.land/x/runme@0.2.3/mod.ts`. | ||
You can import the module directly from the Deno module hosting service via `https://deno.land/x/runme@0.4.1/mod.ts`. | ||
@@ -44,8 +44,24 @@ ## Usage | ||
// or when using Deno: | ||
// import { parse } from 'https://deno.land/x/runme@0.2.3/mod.ts' | ||
// import { parse } from 'https://deno.land/x/runme@0.4.1/mod.ts' | ||
console.log(await parse('## Hello World\n')) | ||
console.log(await parse( | ||
'## Hello World\n' + | ||
'```sh\n' + | ||
'echo "Hello World"\n' | ||
'```' | ||
)) | ||
/** | ||
* outputs: | ||
* [{ markdown: '## Hello World' }] | ||
* [{ | ||
* kind: 1, | ||
* languageId: "", | ||
* value: "# Hello World", | ||
* }, { | ||
* kind: 2, | ||
* languageId: "sh", | ||
* metadata: { | ||
* "runme.dev/name": "echo-hello", | ||
* }, | ||
* value: 'echo "Hello World"', | ||
* }] | ||
*/ | ||
@@ -57,1 +73,2 @@ ``` | ||
<p align="center"><small>Copyright 2022 © <a href="http://stateful.com/">Stateful</a> – Apache 2.0 License</small></p> | ||
'# Hello World\n```sh\n```'), |
6101463
21
72