cjihrig
804e7aa9ab
lib: use const to define constants
...
This commit replaces a number of var statements throughout
the lib code with const statements.
PR-URL: https://github.com/iojs/io.js/pull/541
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-21 16:21:31 -05:00
isaacs
3e1b1dd4a9
Remove excessive copyright/license boilerplate
...
The copyright and license notice is already in the LICENSE file. There
is no justifiable reason to also require that it be included in every
file, since the individual files are not individually distributed except
as part of the entire package.
2015-01-12 15:30:28 -08:00
Ben Noordhuis
21130c7d6f
lib: turn on strict mode
...
Turn on strict mode for the files in the lib/ directory. It helps
catch bugs and can have a positive effect on performance.
PR-URL: https://github.com/node-forward/node/pull/64
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2014-11-22 17:23:30 +01:00
Ben Noordhuis
355b96b605
lib,src: make os.endianness() inlinable
...
Turn os.endianness() from a run-time function into a pure JS function.
Upsides: makes it a good candidate for inlining at the call site.
Downsides: none that I can think of.
PR-URL: https://github.com/node-forward/node/pull/55
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2014-11-11 12:02:27 +01:00
isaacs
9100dd4b0f
lint
...
Fixes lint errors introduced in 120e5a24df
2013-03-28 13:19:08 -07:00
Suwon Chae
120e5a24df
os: use %SystemRoot% or %windir% in os.tmpdir()
...
On Windows, respect the SystemRoot and windir environment variables,
don't default to c:\windows\temp.
2013-03-28 16:44:51 +01:00
Ben Noordhuis
3fe6aba558
os: rename tmpDir() to tmpdir() for consistency
...
Make the casing consistent with the other os.* functions but keep
os.tmpDir() around as an alias.
2013-01-30 04:24:58 +01:00
Nathan Rajlich
5e4e87ade5
os: add os.endianness() function
2012-11-08 12:31:45 -08:00
isaacs
5b39929d47
Add --no-deprecation and --trace-deprecation flags
2012-06-21 12:05:33 -07:00
isaacs
a11bf99ce0
Fix #3407 os.tmpDir()
2012-06-12 19:08:47 -07:00
Mustansir Golawala
7ee15457ed
os: add cross platform EOL character
2012-04-14 23:17:38 +02:00
isaacs
0cdf85e28d
Lint all the JavaScripts.
2012-02-18 15:34:57 -08:00
Brandon Benvie
5403a8ce4c
core: add NativeModule.prototype.deprecate
...
Formalize and cleanup handling of deprecated core methods.
2012-01-30 00:27:07 +01:00
Ben Noordhuis
97900776bb
util: add internal function _deprecationWarning()
2011-12-14 13:36:21 +01:00
Ben Noordhuis
37bb37d151
os: rename getNetworkInterfaces() to networkInterfaces()
2011-11-01 18:10:06 +01:00
isaacs
a7ce79124e
Add arch/platform to os module
2011-04-26 20:04:32 -07:00
Ryan Dahl
19e53512b8
os.getNetworkInterfaces()
2011-03-16 16:34:12 -07:00
Ryan Dahl
55048cdf79
Update copyright headers
2011-03-14 17:37:05 -07:00
Ryan Dahl
9bcfc0745c
Revert "Implement os.isWindows"
...
This reverts commit 9e31e0837e .
Use process.platform == 'win32'
2011-01-13 20:32:36 -08:00
Ryan Dahl
5a05992155
Lint
2011-01-06 16:06:27 -08:00
Bert Belder
9e31e0837e
Implement os.isWindows
2011-01-04 18:38:58 -08:00
Brian White
d75c338dd6
Add more functionality to the os module
2010-12-22 11:01:25 -08:00
Brian White
f1762ff815
Add os module and getHostname
2010-12-11 00:51:20 -08:00