Skip to content

Commit 24d7068

Browse files
committed
chore(package): renaming to "urijs" (lower-case, just like npm like it...)
1 parent f9ae453 commit 24d7068

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ See the [About Page](http://medialize.github.io/URI.js/) and [API Docs](http://m
7979

8080
URI.js (without plugins) has a gzipped weight of about 7KB - if you include all extensions you end up at about 13KB. So unless you *need* second level domain support and use URI templates, we suggest you don't include them in your build. If you don't need a full featured URI mangler, it may be worth looking into the much smaller parser-only alternatives [listed below](#alternatives).
8181

82-
URI.js is available through [npm](http://npmjs.org/), [bower](http://bower.io/) and manually from the [build page](http://medialize.github.io/URI.js/build.html):
82+
URI.js is available through [npm](https://www.npmjs.com/package/urijs), [bower](http://bower.io/search/?q=urijs), [cdnjs](https://cdnjs.com/libraries/URI.js) and manually from the [build page](http://medialize.github.io/URI.js/build.html):
8383

8484
```bash
8585
# using bower
8686
bower install uri.js
8787

8888
# using npm
89-
npm install URIjs
89+
npm install urijs
9090
```
9191

9292
### Browser ###
@@ -95,13 +95,13 @@ I guess you'll manage to use the [build tool](http://medialize.github.io/URI.js/
9595

9696
### Node.js and NPM ###
9797

98-
Install with `npm install URIjs` or add `"URIjs"` to the dependencies in your `package.json`.
98+
Install with `npm install urijs` or add `"urijs"` to the dependencies in your `package.json`.
9999

100100
```javascript
101101
// load URI.js
102-
var URI = require('URIjs');
102+
var URI = require('urijs');
103103
// load an optional module (e.g. URITemplate)
104-
var URITemplate = require('URIjs/src/URITemplate');
104+
var URITemplate = require('urijs/src/URITemplate');
105105

106106
URI("/foo/bar/baz.html")
107107
.relativeTo("/foo/bar/sub/world.html")
@@ -115,14 +115,14 @@ Clone the URI.js repository or use a package manager to get URI.js into your pro
115115
```javascript
116116
require.config({
117117
paths: {
118-
URIjs: 'where-you-put-uri.js/src'
118+
urijs: 'where-you-put-uri.js/src'
119119
}
120120
});
121121

122-
require(['URIjs/URI'], function(URI) {
122+
require(['urijs/URI'], function(URI) {
123123
console.log("URI.js and dependencies: ", URI("//amazon.co.uk").is('sld') ? 'loaded' : 'failed');
124124
});
125-
require(['URIjs/URITemplate'], function(URITemplate) {
125+
require(['urijs/URITemplate'], function(URITemplate) {
126126
console.log("URITemplate.js and dependencies: ", URITemplate._cache ? 'loaded' : 'failed');
127127
});
128128
```
@@ -242,6 +242,7 @@ URI.js is published under the [MIT license](http://www.opensource.org/licenses/m
242242

243243
Package Management Cleanup - no changes to source code!
244244

245+
* renaming package to "urijs", was "URIjs" (because npm decided to go lower-case at some point and maintaining capitals in your package name poses all sorts of stupid issues)
245246
* removing [jam](http://jamjs.org/), [spm](http://spmjs.org/), `component.json` and `URI.jquery.json` as nobody cared that URI.js was stuck on 1.14 for a year
246247

247248
### 1.16.0 (July 24th 2015) ###

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "URIjs",
2+
"name": "urijs",
33
"version": "1.16.0",
44
"main": "src/URI.js",
55
"ignore": [

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "URIjs",
2+
"name": "urijs",
33
"version": "1.16.0",
44
"title": "URI.js - Mutating URLs",
55
"author": {
@@ -54,7 +54,7 @@
5454
"src/URI.fragmentURI.js",
5555
"LICENSE.txt"
5656
],
57-
"npmName": "URIjs",
57+
"npmName": "urijs",
5858
"npmFileMap": [
5959
{
6060
"basePath": "/src/",

0 commit comments

Comments
 (0)