Add install() function
authorWonYoung Choi <wy80.choi@samsung.com>
Tue, 1 Dec 2015 05:04:39 +0000 (14:04 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Tue, 1 Dec 2015 05:04:39 +0000 (14:04 +0900)
commit99103abbb0f4214637c6318efa00148223763da0
treeb0e9693e9cf728e2ba354c46c14157de1f8d6a5c
parenta5888f5402ee2cf93b4a7090234d6aec2a97f8f0
Add install() function

When require('node-xwalk').install() is called '.xwalk' extension
handler will be added to require.extensions of Node.js.
After called this function, crosswalk extensions can be loaded
using require() of Node.js. The extension having '.xwalk' file
extension is searched by the module finding algorithm of Node.js

Change-Id: I733d91ea5ff7f8ad4cf68c92d39fb1e54098b35f
node-xwalk/lib/loader.js