
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
obvious-closure-library
Advanced tools
This is Medium's fork of the Google Closure Library.
We try to keep it reasonably up to date, but only after testing that it is compatible with our products. There may occasionally be changes introduced to work around temporary issues or to try out fixes in preparation of upstream patches.
The package number reflects the date that we last merged the fork. We rebase our changes on top of origin/master, so that our modifications are always on top of the closure-library master changes.
require('obvious-closure-library').bootstrap()
goog.require('goog.string.linkify')
goog.string.linkify.linkifyPlainText('Hello www.world.com')
The repository contains a lot of test files and demos, as such we include a
postinstall script that removes these files from the node_modules
directory
when installed via NPM.
This project isn't intended for external contribution, we suggest instead you send patches directly.
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
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();
FAQs
Fork of closure-library that allows installation via NPM.
The npm package obvious-closure-library receives a total of 212 weekly downloads. As such, obvious-closure-library popularity was classified as not popular.
We found that obvious-closure-library demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.