Huge News!Announcing our $40M Series B led by Abstract Ventures.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.6 to 0.1.7

3

History.md
# History
## V 0.1.7 (January 26, 2016)
* Improved Readme.
## V 0.1.6 (January 26, 2016)

@@ -4,0 +7,0 @@ * Fixed Readme.

6

package.json
{
"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 @@

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