New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

replaxify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

replaxify

A tool which can automatically replace specific string among multiple files.

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

REplaxify

Introduction

This library helps you deal with massive text files, which allows you doing string matching, and replacing with regular expression or css selector.

var Replaxify = require('./core.js'),
    modules = require('./modules');

var opt = process.argv[2];

if(process.argv.length > 0)
  console.log('Using configuration [' + opt + ']');

// load configuration
new Replaxify(modules[opt])
  // create folder list (recursively)
  .traverse()
  // match strings with pattern, raw result is also produced here
  .parseFolders()
  // filter results
  .filter(function(p){
    return !/^\{[^\{\}]+\}$/gi.test(item);
  })
  // output report file
  .report()
  .done();

Configuration

FAQs

Package last updated on 11 May 2015

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