How to end node js execution in case of a API usage error

I am currently writing a node js library. Now I came up with the question what would be the best approach to indicate a usage error by the programmer.

For example if I got the following function in my public API:

function doSomething(aNumber) {
    // ...
}

and I need to make sure that aNumber actually is a number, what way of error handling should I go if the API user passes a parameter that is not.

By convetion functions in node should return an Error object if an error occurs. But in my case this is no error the programmer should catch.

So my question is what would be the most appropriate way to maybe simply "end" the program with an error message, telling the programmer that he did not use my API in the correct way.

I would simply do the following:

console.log("Incorrect api usage.");
process.exit(-1);

You may want to wrap that in a helper function to make the calls simpler...