seegno-closure-library

A mirror of the upstream Google Closure Library but repackaged for npm and without global namespace pollution.

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
Last updated 10 years ago by ruimarinho .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install seegno-closure-library 
SYNC missed versions from official npm registry.

Closure Library

A mirror of the upstream Google Closure Library but repackaged for npm and without global namespace pollution.

Status

npm version

Installation

Install the package via npm:

npm install --save seegno-closure-library

Usage

var goog = require('seegno-closure-library')

global.goog === undefined;
// => true

goog.require;
// => [Function]

goog.require('goog.string.linkify');
// => undefined

goog.string.linkify.linkifyPlainText('Foo https://www.bar.com');
// => '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 = require('seegno-closure-library');

goog.loadScript(__dirname + 'lib/closure/goog/deps.js');

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-library
git fetch upstream
git merge --no-ff upstream/master

Licenses

This package is licensed under MIT. The bundled Google Closure Library is licensed under Apache 2.0.

Current Tags

  • 20150306.0.1                                ...           latest (10 years ago)

3 Versions

  • 20150306.0.1 [deprecated]           ...           10 years ago
  • 20150306.0.0 [deprecated]           ...           10 years ago
  • 20140725.0.5 [deprecated]           ...           10 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE