Skip to content

Commit

Permalink
docs: Rebuilt readme with tldw
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaid committed Jan 12, 2020
1 parent 472dea6 commit b87705d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,6 @@ yarn add crop-string@^2.0.0
```
## Try it out
Open a browser's JavaScript console and execute:
```javascript
const scriptElement = document.createElement("script");
scriptElement.setAttribute("type", "text/javascript");
scriptElement.setAttribute("src", "https://cdn.jsdelivr.net/npm/crop-string@2.0.0/index.js");
document.querySelector("head").appendChild(scriptElement);
```
crop-string is now stored in the global variable `cropString`. The following console expression should return something other than `"undefined"`.
```javascript
typeof cropString.default
```
Expand Down

0 comments on commit b87705d

Please sign in to comment.