Skip to content

Commit eb7c160

Browse files
committed
update URLs
1 parent 0610482 commit eb7c160

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# static-rewrite [![NPM version](https://img.shields.io/npm/v/static-rewrite.svg?style=flat)](https://www.npmjs.com/package/static-rewrite) [![NPM monthly downloads](https://img.shields.io/npm/dm/static-rewrite.svg?style=flat)](https://npmjs.org/package/static-rewrite) [![NPM total downloads](https://img.shields.io/npm/dt/static-rewrite.svg?style=flat)](https://npmjs.org/package/static-rewrite) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/static-rewrite.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/static-rewrite)
1+
# static-rewrite [![NPM version](https://img.shields.io/npm/v/static-rewrite.svg?style=flat)](https://www.npmjs.com/package/static-rewrite) [![NPM monthly downloads](https://img.shields.io/npm/dm/static-rewrite.svg?style=flat)](https://npmjs.org/package/static-rewrite) [![NPM total downloads](https://img.shields.io/npm/dt/static-rewrite.svg?style=flat)](https://npmjs.org/package/static-rewrite) [![Linux Build Status](https://img.shields.io/travis/permalinks/static-rewrite.svg?style=flat&label=Travis)](https://travis-ci.org/permalinks/static-rewrite)
22

33
> Easily generate destination paths or static URLs by mapping user-friendly patterns to server-side build paths.
44
@@ -75,7 +75,7 @@ var Rewriter = require('static-rewrite');
7575

7676
## API
7777

78-
### [Rewriter](index.js#L30)
78+
### [Rewriter](index.js#L31)
7979

8080
Create an instance of `Rewriter` with the given `options`.
8181

@@ -100,7 +100,7 @@ console.log(rewriter.rewrite({path: 'content/docs/api.md'}));
100100
//=> 'docs/api/index.html'
101101
```
102102

103-
### [.rule](index.js#L69)
103+
### [.rule](index.js#L70)
104104

105105
Register a rewrite rule with a `regex` to use for matching paths, a `structure` to use for the replacement patter, and an optional validation `fn` to supplement the regex when matching.
106106

@@ -122,7 +122,7 @@ rewriter.rule(/\.md$/, 'blog/:stem/index.html', function(file) {
122122
});
123123
```
124124

125-
### [.rewrite](index.js#L85)
125+
### [.rewrite](index.js#L86)
126126

127127
Run rewrite [rules](#rule) on the given `file`. If a rule matches
128128
the file, the `file.path` will be rewritten using `locals`, and values
@@ -134,7 +134,7 @@ from the `file` and `file.data`.
134134
* `locals` **{Object}**
135135
* `returns` **{String}**: Returns the formatted path or the original `file.path` if no rewrite rules match the file.
136136

137-
### [.match](index.js#L122)
137+
### [.match](index.js#L123)
138138

139139
Calls `RegExp.exec()` on `file.path`, using the regex from the given rewrite `rule`. If the file matches, the match arguments are returned, otherwise `null`.
140140

@@ -162,7 +162,7 @@ console.log(rewriter.match(ruleA, fileB)); //<= true
162162
console.log(rewriter.match(ruleB, fileB)); //<= true
163163
```
164164

165-
### [Rule](index.js#L174)
165+
### [Rule](index.js#L169)
166166

167167
Create a new `Rule` with the given `pattern`, `structure` and optional function for validating or adding data to the context
168168

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "static-rewrite",
33
"description": "Easily generate destination paths or static URLs by mapping user-friendly patterns to server-side build paths.",
44
"version": "0.1.1",
5-
"homepage": "https://github.com/jonschlinkert/static-rewrite",
5+
"homepage": "https://github.com/permalinks/static-rewrite",
66
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
7-
"repository": "jonschlinkert/static-rewrite",
7+
"repository": "permalinks/static-rewrite",
88
"bugs": {
9-
"url": "https://github.com/jonschlinkert/static-rewrite/issues"
9+
"url": "https://github.com/permalinks/static-rewrite/issues"
1010
},
1111
"license": "MIT",
1212
"files": [

0 commit comments

Comments
 (0)