This website requires JavaScript.
Explore
Help
Register
Sign In
daohualiuxiang
/
node
mirror of
https://github.com/nodejs/node.git
Watch
1
Star
0
Fork
You've already forked node
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
6bf85bc81e
node
/
test
/
fixtures
/
test-init-index
/
index.js
5 lines
70 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Adding support for require-like initialization of node, so `node foo` will load one of: ./foo.js ./foo.node ./foo/index.js ./foo/index.node Test cases added. Ensured no conflict with native names.
2011-01-25 09:52:38 +08:00
(
function
(
)
{
require
(
'util'
)
.
print
(
'Loaded successfully!'
)
;
Fixed a lot of jslint errors. Fixes #1831
2011-10-05 06:08:18 +08:00
}
)
(
)
;