1
- # browser-resolve [ ![ Build Status] ( https://travis-ci.org/defunctzombie/node- browser-resolve.png?branch=master )] ( https://travis-ci.org/defunctzombie/node- browser-resolve )
1
+ # browser-resolve [ ![ Build Status] ( https://travis-ci.org/browserify/ browser-resolve.png?branch=master )] ( https://travis-ci.org/browserify/ browser-resolve )
2
2
3
3
node.js resolve algorithm with [ browser field] ( https://github.com/defunctzombie/package-browser-field-spec ) support.
4
4
@@ -17,13 +17,13 @@ Options:
17
17
* ` packageFilter ` - transform the parsed ` package.json ` contents before looking at the ` main ` field
18
18
* ` paths ` - ` require.paths ` array to use if nothing is found on the normal ` node_modules ` recursive walk
19
19
20
- Options supported by [ node-resolve] ( https://github.com/substack/node- resolve#resolveid-opts-cb ) can be used.
20
+ Options supported by [ node-resolve] ( https://github.com/browserify/ resolve#resolveid-opts-cb ) can be used.
21
21
22
22
### resolve.sync(id, opts={})
23
23
24
24
Same as the async resolve, just uses sync methods.
25
25
26
- Options supported by [ node-resolve] ( https://github.com/substack/node- resolve#resolvesyncid-opts ) ` sync ` can be used.
26
+ Options supported by [ node-resolve] ( https://github.com/browserify/ resolve#resolvesyncid-opts ) ` sync ` can be used.
27
27
28
28
## basic usage
29
29
@@ -37,7 +37,7 @@ resolve('../', { filename: __filename }, function(err, path) {
37
37
38
38
```
39
39
$ node example/resolve.js
40
- /home/substack/projects/node- browser-resolve/index.js
40
+ /home/substack/projects/browser-resolve/index.js
41
41
```
42
42
43
43
## core modules
@@ -57,7 +57,7 @@ resolve('fs', { modules: shims }, function(err, path) {
57
57
58
58
```
59
59
$ node example/builtin.js
60
- /home/substack/projects/node- browser-resolve/builtin/fs.js
60
+ /home/substack/projects/browser-resolve/builtin/fs.js
61
61
```
62
62
63
63
## browser field
@@ -86,7 +86,7 @@ resolve('./main.js', parent, function(err, path) {
86
86
87
87
```
88
88
$ node example/custom.js
89
- /home/substack/projects/node- browser-resolve/example/custom/custom.js
89
+ /home/substack/projects/browser-resolve/example/custom/custom.js
90
90
```
91
91
92
92
## skip
@@ -132,7 +132,7 @@ resolve('tar', parent, function(err, path) {
132
132
133
133
```
134
134
$ node example/skip.js
135
- /home/substack/projects/node- browser-resolve/empty.js
135
+ /home/substack/projects/browser-resolve/empty.js
136
136
```
137
137
138
138
# license
0 commit comments