mongoose-url-slugs
Advanced tools
Comparing version 0.1.6 to 0.1.7
# History | ||
## V 0.1.7 (January 26, 2016) | ||
* Improved Readme. | ||
## V 0.1.6 (January 26, 2016) | ||
@@ -4,0 +7,0 @@ * Fixed Readme. |
{ | ||
"author": { | ||
"name": "Talha Asad", | ||
"email": "talha.asad@agiledevs.com", | ||
"url": "http://mindblaze.net" | ||
"email": "talha@fallentech.com", | ||
"url": "http://fallentech.com" | ||
}, | ||
"name": "mongoose-url-slugs", | ||
"description": "Create URL compatiable slugs on mongoose models, ensuring uniqueness.", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"keywords": [ | ||
@@ -11,0 +11,0 @@ "mongoose slugs", |
@@ -18,3 +18,23 @@ [![Build Status](https://travis-ci.org/mindblaze/mongoose-url-slugs.png?branch=master)](https://travis-ci.org/mindblaze/mongoose-url-slugs) | ||
-## What is a Slug? | ||
- | ||
-A slug is a human-readable unique identifier that can be used in a URL instead of an ID or hash. This is common in content sites where the title of the article is "slugified" to turn this ugly URL | ||
- | ||
-> http://example.com/a12Qv09b4 | ||
- | ||
-into this pretty one | ||
- | ||
-> http://example.com/your-article-title-here | ||
- | ||
-## How Slugs are Formatted | ||
- | ||
-When supplied with a string, the following steps are taken to transform it into a slug. | ||
- | ||
-- Accented characters are converted to regular equivalent characters. | ||
-- Converted to lower case | ||
-- All punctuation is removed | ||
-- All spaces are replaced with dashes | ||
-- Add a number to the end if the slug isn't unique (eg: `my-cool-slug` and `my-cool-slug-2`) | ||
## Example Usage | ||
@@ -21,0 +41,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114
18977
5
1