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

crspr

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

crspr - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

18

crspr.js

@@ -5,10 +5,2 @@ /**

function registerGlobal(moduleName, asName) {
if (!global[asName]) {
console.info('reistered global', moduleName, 'as', asName);
global[asName] = require(moduleName);
}
}
/*** A-START ***/

@@ -26,2 +18,3 @@ /*** T-END ***/

var util = require('util');
var path = require('path');

@@ -40,5 +33,10 @@ function crspr(startTag, endTag, replaceMent) {

var mePath = process.argv[1];
console.log('me file:', mePath);
var fs = require('fs');
var lineReader = require('readline').createInterface({
input: fs.createReadStream(__filename)
input: fs.createReadStream(mePath)
});

@@ -79,3 +77,3 @@

lineReader.on('close', function () {
fs.writeFileSync(__filename, newFileLines.join('\n'));
fs.writeFileSync(mePath, newFileLines.join('\n'));
console.log('wrote file');

@@ -82,0 +80,0 @@ });

{
"name": "crspr",
"version": "1.0.1",
"version": "1.0.2",
"description": "Self modifying files toolkit",

@@ -5,0 +5,0 @@ "main": "crspr.js",

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