Google's common JavaScript library
jplaisted Fix misleading test (that was still "working").
There never was a KeyCodes.COLON or KeyCodes.EXCLAMATION. The test was a lie since the beginning. Things still "worked" because some type coercion happened, but it wasn't really testing things right since in fact they both evaluated to undefined, and so were actually the same fake keycode...

RELNOTES: n/a

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=213267598
Latest commit 18fbadf Sep 17, 2018
Permalink
Failed to load latest commit information.
closure-deps Warn about unrecognized ES6 imports rather that error on them. Allows… Sep 17, 2018
closure Fix misleading test (that was still "working"). Sep 17, 2018
doc trivial typo fix Aug 6, 2018
scripts Don't attempt to compile the closure-deps/ folder. Aug 7, 2018
third_party/closure/goog Fix misleading comments on definitions of goog.async.Deferred.STRICT_… Mar 29, 2018
.gitignore Include the new google-closure-deps node module in the Closure Librar… Aug 6, 2018
.npmignore Include the new google-closure-deps node module in the Closure Librar… Aug 6, 2018
.travis.yml Do not connect to saucelabs Feb 20, 2018
AUTHORS Fix bug: incorrect device pixel ratio Sep 6, 2016
CONTRIBUTING Fix typo in javascript/closure/CONTRIBUTING Jul 30, 2016
LICENSE Disabling tests that are failing in new browsers. There are bugs file… Apr 12, 2011
README.md use syntax highlighting in README.md Jun 4, 2018
all_tests.html Remove reference to internal wiki page on external test runner. Aug 8, 2013
alltests.js Add partial support for nested functions in CSSSanitizer (also cleanu… Sep 17, 2018
browser_capabilities.js Add a bunch of missing license blocks and fix some lint warnings in v… Jul 4, 2018
package.json New npm release at v20180805.0.0 Aug 10, 2018
protractor.conf.js Add a bunch of missing license blocks and fix some lint warnings in v… Jul 4, 2018
protractor_spec.js Add a bunch of missing license blocks and fix some lint warnings in v… Jul 4, 2018
sauce_browsers.json RM IE10 too Mar 24, 2017

README.md

Closure Library Build Status

Closure Library is a powerful, low-level JavaScript library designed for building complex and scalable web applications. It is used by many Google web applications, such as Google Search, Gmail, Google Docs, Google+, Google Maps, and others.

For more information, visit the Google Developers or GitHub sites.

Download the latest stable version on our releases page.

Developers, please see the Generated API Documentation.

See also the goog.ui Demos

Using with Node.js

Install the official package from npm.

npm install google-closure-library

Require the package and use goog.require normally.

require("google-closure-library");

goog.require("goog.crypt.Sha1");

var sha1 = new goog.crypt.Sha1();
sha1.update("foobar");
var hash = sha1.digest();