Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Update writing_modules documentation: CasperJS in now able to call/load ... #587

Merged
merged 5 commits into from Aug 20, 2013
Merged

Update writing_modules documentation: CasperJS in now able to call/load ... #587

merged 5 commits into from Aug 20, 2013

Conversation

mickaelandrieu
Copy link
Member

...nodejs modules

The same way phantomJS can.

…ad nodejs modules

The same way phantomJS can.
@mickaelandrieu
Copy link
Member Author

Add documentation, in reference of closed ticket #587


.. hint::

CasperJS is able to call nodejs modules in the same way that phantomjs, take a look at the example below::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/call/require, and possibly a link to npm for "nodejs modules"

@@ -28,3 +28,47 @@ From your root casper script::

var universe = require('./universe');
console.log(universe.answer()); // prints "It's 42"

.. versionadded:: 1.1-dev
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer having fixed version numbering, here 1.1


.. hint::

CasperJS is able to call nodejs modules in the same way that phantomjs, take a look at the example below.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like PhantomJS, CasperJS allows using nodejs modules installed through npm._

@n1k0
Copy link
Member

n1k0 commented Aug 19, 2013

Sry for being nitpicky ;)

@n1k0
Copy link
Member

n1k0 commented Aug 20, 2013

Looks good ;) Thanks!

n1k0 added a commit that referenced this pull request Aug 20, 2013
Update writing_modules documentation: CasperJS in now able to call/load ...
@n1k0 n1k0 merged commit a4a1774 into casperjs:master Aug 20, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants