New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mongoose-url-slugs

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-url-slugs - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

History.md

8

package.json

@@ -9,3 +9,3 @@ {

"description": "Create URL compatiable slugs on mongoose models, ensuring uniqueness.",
"version": "0.1.3",
"version": "0.1.4",
"keywords": [

@@ -35,6 +35,6 @@ "mongoose slugs",

"devDependencies": {
"chai": "^2.2.0",
"mocha": "^2.2.4",
"mongoose": "^4.0.1"
"chai": "^3.2.0",
"mocha": "^2.3.2",
"mongoose": "^4.1.7"
}
}

@@ -18,21 +18,3 @@ [![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.
- 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

@@ -93,3 +75,5 @@

## History
* v0.1.3 (2015-04-23) -- Fixed an issue with default options being overwritten.
* v0.1.4 (2015-09-15) -- Dependencies updated.
* v0.1.3 (2014-04-23) -- Dependencies updated.
* v0.1.2 (2014-12-09) -- Fixed an issue with index_sparse.

@@ -127,2 +111,2 @@ * v0.1.1 (2014-12-09) -- Fixed an issue due to maxLength.

OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc