0

script to create a node server(node_server.js) , i want to include jquery library to that file.

i want to use jquery in this file , how to include jquery library to this javascript file ,

note that , i am not including this file to a view , this is a node server written in javascript .

part of my server

var server = http.createServer(function (request,response)
{
    var pathRegex = new RegExp('^/publish/?$');
    var pathname = url.parse(request.url).pathname;

    if (pathRegex.test(pathname)) {
       publish(request, response);
    } else {
       render404(request, response);
    }
});

1 Answer 1

1

Seeking a new maintainer, but you might give node-jquery a try. See also the SO thread "Can I use jQuery with node.js?"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.