Socket
Socket
Sign inDemoInstall

mdtkit-parser

Package Overview
Dependencies
4
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.21

18

npm_scripts/post_install.js

@@ -1,2 +0,16 @@

const fs = require("fs");
fs.rmdir("src/generated_parsers");
const fs = require('fs');
const deleteFolderRecursive = function(path) {
if( fs.existsSync(path) ) {
fs.readdirSync(path).forEach(function(file,index){
var curPath = path + "/" + file;
if(fs.lstatSync(curPath).isDirectory()) { // recurse
deleteFolderRecursive(curPath);
} else { // delete file
fs.unlinkSync(curPath);
}
});
fs.rmdirSync(path);
}
};
deleteFolderRecursive("src/generated_parsers");

4

package.json
{
"name": "mdtkit-parser",
"version": "1.0.2",
"version": "1.0.21",
"description": "A test data parser for testdata written in markdown.",

@@ -14,3 +14,3 @@ "main": "src/mdtkit-parser-cli.js",

"test": "nodeunit",
"postinstall": "npm_scripts/post_install.js"
"postinstall": "node npm_scripts/post_install.js"
},

@@ -17,0 +17,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc