Skip to content

Commit

Permalink
updated function export
Browse files Browse the repository at this point in the history
  • Loading branch information
gkhan205 committed May 16, 2021
1 parent d5ce3dc commit 0f1a802
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,20 @@ slugifyme("Create a Slug for me.");
// returns `create-a-slug-for-me`
```

```js
const slugifyme = require("slugifyme");

slugifyme.slugifyme("Create a Slug for me.");
// returns `create-a-slug-for-me`
```

## Demo

[![Edit infallible-heyrovsky-fik2x](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/infallible-heyrovsky-fik2x?fontsize=14&hidenavigation=1&theme=dark)
Browser Demo (JS, React, Angular, Vue, etc)\
[![Edit slugifyme-browser-demo](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/slugifyme-demo-fik2x?fontsize=14&hidenavigation=1&theme=dark)

NodeJS Demo\
[![Edit slugifyme-node-demo](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/gallant-hodgkin-vzql1?fontsize=14&hidenavigation=1&theme=dark)

---

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slugifyme",
"version": "1.0.3",
"version": "1.0.4",
"description": "A light weight library to create slugs with ease. Compatible with Browser and Node",
"main": "index.js",
"repository": {
Expand All @@ -23,4 +23,4 @@
"url": "https://github.com/gkhan205/slugifyme/issues"
},
"homepage": "https://github.com/gkhan205/slugifyme#readme"
}
}

0 comments on commit 0f1a802

Please sign in to comment.