Skip to content

Commit

Permalink
added ES6 import instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcorvi committed Feb 26, 2017
1 parent 0008ce1 commit 1d4a0f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ <h3 id="basic-usage">Basic usage</h3>
<pre class="sml"><code>anchorme(input:string,[options:object])</code></pre>
<p>The example below demonstrates basic usage with no options</p>
<pre class="code"><code>
var anchorme = require("anchorme"); // if installed via NPM
var anchorme = require("anchorme").default; // if installed via NPM
import anchorme from "anchorme"; // ES6 / Typescript style imports
var someText = "this is a text with a link www.github.com ..";
var result = anchorme(someText);
// You can also pass few options (totally optional)
Expand Down

0 comments on commit 1d4a0f9

Please sign in to comment.