lowe/zxcvbn — pull request #10 by nmalkin (2012-08-01 00:54:43+00:00)
Title: Check for window before attaching zxcvbn to it

As per your conversation with @psawaya, this pull request makes the following change:

Rather than directly attaching the zxcvbn function to the `window` object, check first if the window exists (i.e., we are in a browser environment).

Otherwise, check if an `exports` object exists (a CommonJS environment), and, if so, attach zxcvbn to it.