Questions tagged [io.js]

io.js was a fork of Node.js, which split off from the original Node.js development team in January 2015, but rejoined the main Node.js project in September 2015.

io.js

io.js is a fork of Joyent's Node.js totally compatible with node.js, that is run by some of the same maintainers of Node.js. First release published in January 2015.

io.js is built against modern versions of V8. By keeping up-to-date with the latest releases of this engine we ensure new features from the JavaScript ECMA-262 specification are brought to io.js developers in a timely manner, as well as continued performance and stability improvements.

It is used for developing applications that make heavy use of the ability to run JavaScript both on the client, as well as on server side and therefore benefit from the re-usability of code and the lack of context switching.

It is aimed to feature:

  • semver
  • provide faster and predictable release cycles.
  • community driven development
  • compatibility with node.js

Whats new in IO.js

  • Bringing ES6 to the Node Community!
  • smalloc: a new core module for doing (external) raw memory allocation/deallocation/copying in JavaScript
  • v8: core module for interfacing directly with the V8 engine

Interesting Questions and Answers

56 questions
49
votes
5 answers

const vs let when calling require

As io.js now supports ES6 you are finally able to use the const and let keywords. Obviously, let is the successor of var, just with some super-powers. But what about const? I know, of course, what "constant" means, but I was wondering when to use it…
Golo Roden
  • 140,679
  • 96
  • 298
  • 425
13
votes
3 answers

How to use jQuery with jsdom@5?

I am migrating from node.js to io.js and my old node.js code does not work with jsdom@5. var jsdom=require('jsdom'); var $=require('jquery')(jsdom.jsdom().createWindow); Here is the error: /tmp/iojs/node_modules/jquery/dist/jquery.js:28 …
untitled
  • 1,037
  • 2
  • 12
  • 27
10
votes
1 answer

Will there be an ES6 compatible module system (import/export) in iojs?

I cannot find anywhere info about what the plans will be with this ES6 feature. It would be very useful to have something similar as in the browser. //------ lib.js ------ export const sqrt = Math.sqrt; export function square(x) { return x *…
paul van bladel
  • 1,663
  • 14
  • 18
7
votes
2 answers

zombie browser won't open a window after calling open function

tools attempt 1 Darwin 14.3.0 Darwin Kernel Version 14.3.0 io.js v1.8.1 zombie Version 4.0.7 2015-04-10 attempt 2 Linux ubuntuG5 3.13.0-48-powerpc64-smp node.js v0.10.38 zombie Version 3.1.0 2015-03-15 commands: const Browser =…
dmmfll
  • 2,666
  • 2
  • 35
  • 41
7
votes
2 answers

Writing an io.js-compatible npm module

Should I reference io.js in my package.json? And is there anything else I should do differently if I want to write a module that is compatible with both Node and io.js?
callum
  • 34,206
  • 35
  • 106
  • 163
7
votes
1 answer

Is there a reliable way of detecting whether io.js or node.js is running?

The only way I can kind-of infer whether node.js or io.js is running is to check process.versions.node. In io.js, I get 1.0.4. I'm sure there's a better way - anyone know?
Chris
  • 4,594
  • 4
  • 29
  • 39
6
votes
1 answer

How to use ES6 Hash Map on any object without maintaing a reference (I.e. Java hashcode)

I've been experimenting with ES6 Map in io.js and realized that I can't do the following: var map = new Map() map.set( {key:"value"}, "some string"); map.get( {key:"value"} ); // undefined. I want "some string" This is because {key:"value"} ===…
Upio
  • 1,364
  • 1
  • 12
  • 27
6
votes
2 answers

use of smalloc in io.js

The first release for io.js is out this month, I was reading the docs when I found smalloc a new module introduced in io.js. Till today I have never felt a need of doing so in JavaScript. My questions are: I wonder if there is really a need of…
Naeem Shaikh
  • 15,331
  • 6
  • 50
  • 88
5
votes
0 answers

Combine stdout and stderr into a single node.js stream

I want to combine stdout and stderr of a child process into a single, intermediate stream which I can then consume and do processing on. Is this possible with the standard API's? (I realize there are subtleties around interleaving the two streams,…
Philip
  • 4,128
  • 5
  • 31
  • 49
5
votes
1 answer

Which Licenses to ship within an NW.js - application?

I've just read the section about distributing at the wiki of nw.js And since the binary is based on Chromium, multiple open source license > notices are needed including the MIT License, the LGPL, the BSD, the Ms-PL and an MPL/GPL/LGPL tri-license.…
Devcon
  • 65
  • 3
5
votes
2 answers

Jest (JS) segmentation fault 11 in IO.js 1.4.3 when using require()

I'm using IO.js 1.4.3 and Jest to run my test suites. I need a newer version of V8 because I am using ES6 features like Promises. If I try the simplest possible test: describe('the truth', function() { it('is true', function() { …
GTF
  • 8,031
  • 5
  • 36
  • 59
5
votes
3 answers

Migration to ES6

Is there any way to migrate ES5 code to ES6? I searched for some examples regarding the fact of using latest Node.js and it always gave me an error even with harmony flag. Error included message that there are invalid syntax even for "let" keyword.…
Dmitriy
  • 61
  • 1
  • 5
4
votes
3 answers

Install io.js and npm without node via Homebrew on OSX

As $title says, I want to install io.js with brew on Yosemite. In my system there is no need for Node.js, and I want to avoid unnecessary programs. But.. When I run brew install iojs I see it will be built with --without-npm option, and as the…
inoirawus
  • 63
  • 4
4
votes
2 answers

How to call a javascript callback from C++

I'm trying to call a callback in V8 from another point of my function. So this piece of code register the callback: if (args.Length()) { String::Utf8Value event(args[0]->ToString()); if (event.length()) …
Vinz243
  • 9,654
  • 10
  • 42
  • 86
4
votes
1 answer

Use classes on io.js in a file not in REPL

io.js released 1.0.1 version yesterday and, as the developers say, it's now possible to use classes without a nightly build. But I'm not able to use ES6 classes without being in the REPL, e.g.: $ iojs --use_strict --harmony_classes > class Person…
Talysson
  • 1,363
  • 1
  • 9
  • 13
1
2 3 4