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

closure-tools

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

closure-tools

Google Closure Tools :: Python files on npm

  • 0.1.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

Google Closure Tools

An npm package that contains the closure tools with a small API that provides the path to the actual files.

Quick Start

Install...

npm install closure-tools --save-deps

Require...

var closureTools = require('closure-tools');

Get the path:

var builderPath = closureTools.getPath('build/closurebuilder.py');
console.log(builderPath);

// prints:
// node_modules/closure-tools/closure-bin/build/closurebuilder.py

getPath( filename )

Get the relative path to your package's root, for the defined filename.

The filename can have any value from the closure bin folder (see below).

Full Example

var closureTools = require('closure-tools'),
    exec     = require('require('child_process').exec');

/* ... */

// prepare the closurebuilder command
var command = closureTools.getPath('build/closurebuilder.py') + ' ' + buildOptions;

// run the closureTools command
exec( command, cb );

The Closure bin Contents

This is the current breakout of the Google Closure's Tools folder, and in effect all the possible values the getPath() method will make sense:

build/closurebuilder.py
build/depstree_test.py
build/source_test.py
build/depstree.py
build/depswriter.py
build/source.py
build/treescan.py
build/jscompiler.py
calcdeps.py
scopify.py

Release History

  • v0.1.4, 5 Nov 2013 Updated closure binaries to latest.

Keywords

FAQs

Package last updated on 05 Nov 2013

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