Skip to content

Commit 561c21a

Browse files
committed
Remove deprecated options from README.md.
1 parent 1acc918 commit 561c21a

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

README.md

+11-12
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,21 @@ var install = require("install").makeInstaller({
3030
// identifiers if they do not exactly match an installed module.
3131
extensions: [".js", ".json"],
3232

33-
// If defined, the options.onInstall function will be called any time
34-
// new modules are installed.
35-
onInstall,
36-
37-
// If defined, the options.override function will be called before
38-
// looking up any top-level package identifiers in node_modules
39-
// directories. It can return either a string to provide an alternate
40-
// package identifier or a non-string value to prevent the lookup from
41-
// proceeding.
42-
override,
43-
4433
// If defined, the options.fallback function will be called when no
4534
// installed module is found for a required module identifier. Often
4635
// options.fallback will be implemented in terms of the native Node
4736
// require function, which has the ability to load binary modules.
48-
fallback
37+
fallback,
38+
39+
// Boolean flag indicating whether the installed code will be running in
40+
// a web browser.
41+
browser,
42+
43+
// List of fields to look for in package.json files to determine the
44+
// main entry module of the package. The first field listed here whose
45+
// value is a string will be used to resolve the entry module. Defaults
46+
// to just ["main"], or ["browser", "main"] if options.browser is true.
47+
mainFields: ["browser", "main"],
4948
});
5049
```
5150

0 commit comments

Comments
 (0)