Skip to content

Commit 4a407d1

Browse files
Kevin SmithKevin Smith
authored andcommitted
Add context for the 23 "default.js" files at package root.
1 parent ec758c0 commit 4a407d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ bar/
136136
- The word "default" has a special, and similar meaning in ES6 modules.
137137
- Despite "default" being a common English word, "default.js" is not widely used as a file name.
138138

139-
In a [search of all the filenames in the @latest NPM packages as of 2016-01-28](https://gist.github.com/bmeck/9b234011938cd9c1f552d41db97ad005), "default.js" was only found 23 times in a package root. This particular "default.js" file was already an ES6 module. As a filename, "default.js" was found 1968 times. By contrast, "index.js" was found 22,607 times, and in the package root 10,282 times.
139+
In a [search of all the filenames in the @latest NPM packages as of 2016-01-28](https://gist.github.com/bmeck/9b234011938cd9c1f552d41db97ad005), "default.js" was only found 23 times in a package root. Of these packages, 8 are using "default.js" as an ES6 module entry point already (they are published by @zenparsing, so no surprises there). The remaining 15 packages would need to be updated in order to allow `import`ing them from other ES6 modules.
140+
141+
As a filename, "default.js" was found 1968 times.
140142

141143

142144
## Running Modules from the Command Line

0 commit comments

Comments
 (0)