Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ronhippler committed May 14, 2020
1 parent e0ed537 commit 0997d88
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A library for managing deno native plugin dependencies
[![tag](https://img.shields.io/github/tag/manyuanrong/deno-plugin-prepare.svg)](https://github.com/manyuanrong/deno-plugin-prepare)
[![Build Status](https://github.com/manyuanrong/deno-plugin-prepare/workflows/ci/badge.svg?branch=master)](https://github.com/manyuanrong/deno-plugin-prepare/actions)
[![license](https://img.shields.io/github/license/manyuanrong/deno-plugin-prepare.svg)](https://github.com/manyuanrong/deno-plugin-prepare)
[![tag](https://img.shields.io/badge/deno-v1.0.0-rc1-green.svg)](https://github.com/denoland/deno)
[![tag](https://img.shields.io/badge/deno-v1.0.0-green.svg)](https://github.com/denoland/deno)

### Why do you need this module?

Expand All @@ -25,7 +25,7 @@ The API needs to provide some plug-in information, including the name of the plu
import {
prepare,
PerpareOptions,
} from "https://deno.land/x/plugin_prepare@v0.4.0/mod.ts";
} from "https://deno.land/x/plugin_prepare@v0.6.0/mod.ts";

const releaseUrl =
"https://github.com/manyuanrong/deno-plugin-prepare/releases/download/plugin_bins";
Expand All @@ -41,21 +41,22 @@ const pluginOptions: PerpareOptions = {

// Support "http://", "https://", "file://"
urls: {
mac: `${releaseUrl}/libtest_plugin.dylib`,
win: `${releaseUrl}/test_plugin.dll`,
darwin: `${releaseUrl}/libtest_plugin.dylib`,
windows: `${releaseUrl}/test_plugin.dll`,
linux: `${releaseUrl}/libtest_plugin.so`,
},
};
const rid = await prepare(pluginOptions);
//@ts-ignore
const { testSync } = Deno.core.ops();

//@ts-ignore
const response = Deno.core.dispatch(
testSync,
new Uint8Array([116, 101, 115, 116])
)!;

console.log(response);
Deno.close(rid);
```

### TODOs
Expand Down

0 comments on commit 0997d88

Please sign in to comment.