Socket
Book a DemoInstallSign in
Socket

browserify-commit-sha

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-commit-sha

browserify transform for appending lastest git commit sha

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
4
-55.56%
Maintainers
2
Weekly downloads
 
Created
Source

browserify-commit-sha

browserify transform for appending the latest git commit SHA

The output looks like this:

(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function (process){




global.__BROWSERIFY_META_DATA__GIT_VERSION = "c6541cbdf842e204fd2a958a28e83ba7be42f3c9";
global.__BROWSERIFY_META_DATA__CREATED_AT = "Sun Feb 15 2015 17:18:10 GMT-0500 (PET)";



'use strict';

// this is the entry point file that you browserified
var x require('x')
var y = require('y')
// ...

Its a bit of a hack, but it works alright.

Requires node 0.12+ for execSync.

Keywords

browserify

FAQs

Package last updated on 05 Jan 2016

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