Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

google-closure-library

Package Overview
Dependencies
Maintainers
3
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-closure-library

Google's common JavaScript library

  • 20230802.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
117K
decreased by-28.28%
Maintainers
3
Weekly downloads
 
Created

What is google-closure-library?

The google-closure-library is a comprehensive, well-tested, modular, and cross-browser JavaScript library. It provides a wide range of utilities for building complex web applications, including data structures, UI components, and language utilities.

What are google-closure-library's main functionalities?

Data Structures

The google-closure-library provides various data structures like Map, Set, and PriorityQueue. These structures are optimized for performance and provide additional methods compared to native JavaScript objects.

const goog = require('google-closure-library');
require('google-closure-library/closure/goog/structs/map');

const map = new goog.structs.Map();
map.set('key1', 'value1');
map.set('key2', 'value2');
console.log(map.get('key1')); // Output: 'value1'

UI Components

The library includes a set of UI components that can be used to build interactive web applications. These components are highly customizable and support various themes and styles.

const goog = require('google-closure-library');
require('google-closure-library/closure/goog/ui/button');

const button = new goog.ui.Button('Click Me');
button.render(document.body);

Localization and Internationalization

The library offers extensive support for localization and internationalization, including date and time formatting, number formatting, and message translations.

const goog = require('google-closure-library');
require('google-closure-library/closure/goog/i18n/datetimesymbols');

const symbols = goog.i18n.DateTimeSymbols;
console.log(symbols.WEEKDAYS); // Output: Array of weekday names

Other packages similar to google-closure-library

Keywords

FAQs

Package last updated on 10 Aug 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc