Closure Library
A mirror of the upstream Google Closure Library but repackaged for npm and without global namespace pollution.
Status
Installation
Install the package via npm
:
npm install --save seegno-closure-library
Usage
var goog = globalgoog === undefined;// => true googrequire;// => [Function] goog;// => undefined googstringlinkify;// => 'Foo <a rel="nofollow" target="_blank" href="https://www.bar.com">https://www.bar.com</a>'
Loading a dependency file
Generate a dependency file by using closure/bin/build/depswriter.py
and load it using the special loadScript
function from goog
:
var goog = ; goog;
Updating from upstream
The master
branch is always merged with upstream/master
without fast forwarding commits:
git remote add upstream git@github.com:google/closure-librarygit fetch upstreamgit merge --no-ff upstream/master
Licenses
This package is licensed under MIT. The bundled Google Closure Library is licensed under Apache 2.0.