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.7 to 0.2.1

6

History.md
# History
## V 0.2.1 (February 4, 2016)
* Add files key to package.json
## V 0.1.8 - 0.2.0 (Removed)
* Had issues with NPM v3
## V 0.1.7 (January 26, 2016)

@@ -4,0 +10,0 @@ * Improved Readme.

6

package.json

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

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

@@ -25,2 +25,6 @@ "mongoose slugs",

"main": "index.js",
"files": [
"Readme.md",
"index.js"
],
"engines": {

@@ -27,0 +31,0 @@ "node": ">=0.10.0"

41

Readme.md
[![Build Status](https://travis-ci.org/mindblaze/mongoose-url-slugs.png?branch=master)](https://travis-ci.org/mindblaze/mongoose-url-slugs)
[![Dependency Status](https://www.versioneye.com/user/projects/5478679560944d12df000046/badge.svg)](https://www.versioneye.com/user/projects/5478679560944d12df000046)
[![Dependency Status](https://www.versioneye.com/user/projects/56a7673f7e03c7003ba3fc11/badge.svg)](https://www.versioneye.com/user/projects/56a7673f7e03c7003ba3fc11)
[![NPM version](https://badge.fury.io/js/mongoose-url-slugs.svg)](http://badge.fury.io/js/mongoose-url-slugs)

@@ -18,23 +18,22 @@

-## 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`)
## 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

@@ -97,3 +96,3 @@

Copyright (c) 2015 Talha Asad
Copyright (c) 2014 - 2016 Talha Asad

@@ -100,0 +99,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

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