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

webpack-auto-inject-version

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-auto-inject-version - npm Package Compare versions

Comparing version 0.0.1 to 0.0.11

.npmignore

9

package.json
{
"name": "webpack-auto-inject-version",
"version": "0.0.1",
"version": "0.0.11",
"description": "Webpack plugin for auto inject version from package.json",
"main": "dist/main.js",
"scripts": {
"build": "tsc -w"
},
"author": "Radoslaw Swiat",
"license": "ISC"
"license": "ISC",
"devDependencies": {
"chalk": "^1.1.3",
"typings": "^1.4.0"
}
}

@@ -1,3 +0,25 @@

/**
* Created by 608234548 on 19/10/2016.
*/
/// <reference path='../typings/index.d.ts' />
var chalk = require('chalk');
var fs = require('fs');
var path = require('path');
class WebpackAutoInject{
constructor(options) {
}
static getVersion = function(){
var package = JSON.parse(fs.readFileSync(path.normalize('./package.json'), 'utf8'));
return package.version;
}
protected apply(compiler) {
compiler.plugin('emit', function(compilation, cb) {
});
}
}
module.exports = WebpackAutoInject;
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