node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป


These methods are used clean up user or client side values so that they are handled correctly by server side javascript.

For example:
Client side javascript may send a string value of "undefined" when really it wanted to send the value undefined. Using the sanitize string method we can detect this and set the value to the appropriate undefined value.