From 8b3ebd66d86d194412a5765a33de636c0ca35d66 Mon Sep 17 00:00:00 2001 From: linkstrifer Date: Thu, 7 May 2015 18:46:01 -0500 Subject: [PATCH 1/3] [update] require friendly files :D! --- angular-slugify.js | 2 ++ index.js | 3 +++ package.json | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 index.js diff --git a/angular-slugify.js b/angular-slugify.js index 69195e2..89bd8f6 100644 --- a/angular-slugify.js +++ b/angular-slugify.js @@ -297,4 +297,6 @@ return Slug.slugify(input); }; }]); + + module.exports = mod; })(); diff --git a/index.js b/index.js new file mode 100644 index 0000000..62a8ecb --- /dev/null +++ b/index.js @@ -0,0 +1,3 @@ +var angularSlugify = require('angular-slugify'); + +module.exports = angularSlugify; diff --git a/package.json b/package.json index e3ceb05..3448a47 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-slugify", - "version": "1.0.1", + "version": "1.0.1.1", "description": "Provides “slugification” for AngularJS in the form of a service, filter, and a directive.", "main": "angular-slugify.js", "directories": { From 79f16f0c385a82f6ad317ec0b2fa4e3593ec9d68 Mon Sep 17 00:00:00 2001 From: linkstrifer Date: Thu, 7 May 2015 18:48:04 -0500 Subject: [PATCH 2/3] [update] fix package.json version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3448a47..e96c249 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-slugify", - "version": "1.0.1.1", + "version": "1.0.2", "description": "Provides “slugification” for AngularJS in the form of a service, filter, and a directive.", "main": "angular-slugify.js", "directories": { From c18bd1f1bfadea851c9914cc52d0ebcbe8a9e2a7 Mon Sep 17 00:00:00 2001 From: linkstrifer Date: Fri, 8 May 2015 11:22:26 -0500 Subject: [PATCH 3/3] [update] update readme --- README.md | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b369548..2f3a9ac 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,9 @@ For example, “Man Bites Dog” might produce the slug `man-bites-dog` for the ## Usage Include `angular-slugify.js` in your HTML document somewhere after you have set -up AngularJS. +up AngularJS or can install it with npm + +`npm install angular-slugify` and add `require('angular-slugify');` to your bundle. ```html