Nutritious Pumpkin Mash

    nw-requirejs

    1.0.1 • Public • Published

    Node JS : Load node module in RequireJS

    This is plugin for RequireJS working on Node JS, NWJS/Node Webkit and Atom Electron

    Install

    Bower

    bower install nw-requirejs --save
    

    NPM

    npm install nw-requirejs --save
    

    or download here

    please do the following configuration

    {
        "map": {
            "*": {
                "node": "bower_components/nw-requirejs/nw-require"
            }
        }
    }

    Example

    define([
        'node!path', // native nodejs
        'node!fs-extra', // nodejs library
        'node!nw.gui', // native nwjs
        'node!electron', // native electron
        'jquery' // jquery
    ], function(path, fs, nwjs, electron, $) {
     
        // your code
        
    });
     

    Install

    npm i nw-requirejs

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • didanurwanda