---
title: NPM101: Version Ranges
layout: post
---

{% highlight json %}
  "devDependencies": {
    "bower": "^1.6.5",
    "grunt": "~0.4.5",
    "grunt-contrib-imagemin": "~0.9.4",
    "grunt-contrib-sass": "~0.9.2",
    "grunt-contrib-watch": "~0.6.1",
    "matchdep": "~0.3.0"
  },
{% endhighlight %}

| Indicator | Name | Meaning | 
| --- | --- | --- |
| `^` | Caret range | Allows minor and patch updates |
| `~` | Tilde range | Allows patch-level changes if minor version is specified |

It's possible to add configure your project to help ensure only a specific version of a package is added. Create a file called `.npmrc`, and specify `save-exact=true`. As a bonus, you can also added `save=true` to make sure that any new installs are added to your projects' `package.json`

---
title: NPM101 – Version Ranges
layout: post
---

{% highlight json %}
  "devDependencies": {
    "bower": "^1.6.5",
    "grunt": "~0.4.5",
    "grunt-contrib-imagemin": "~0.9.4",
    "grunt-contrib-sass": "~0.9.2",
    "grunt-contrib-watch": "~0.6.1",
    "matchdep": "~0.3.0"
  },
{% endhighlight %}

| Indicator | Name | Meaning |
| --- | --- | --- |
| `^` | Caret range | Allows minor and patch updates |
| `~` | Tilde range | Allows patch-level changes if minor version is specified |

It's possible to add configure your project to help ensure only a specific version of a package is added. Create a file called `.npmrc`, and specify `save-exact=true`. As a bonus, you can also added `save=true` to make sure that any new installs are added to your projects' `package.json`

Remove colon from post title
Remove colon from post title

It breaks Jekyll, doesn’t it?
