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

redo

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redo

js interface to https://github.com/apenwarr/redo

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
22
15.79%
Maintainers
1
Weekly downloads
 
Created
Source

redo.js

node.js wrapper for the redo build system. For declaring dependencies in JavaScript .do files.

install

npm install redo

Redo itself is packaged under bin and exported, so

npm install -g redo

makes the redo-* commands available to the system. This is not necessary for the library to work, but it does mean you don't have to type ./node_modules/.bin/redo. Which is nice.

using

See the redo docs for an overview of the build system itself.

default.upper.do

#!/usr/bin/env node
var redo = require('redo');
var fs = require('fs');

redo.ifchange(process.argv[2] + '.lower', function() {
  process.stdout.write(
    fs.readFileSync(process.argv[2] + '.lower', 'utf8').toUpperCase()
  );
});

default.js.do

It's a bit nicer in Livescript:

#!/usr/bin/env lsc
require! [redo, fs, LiveScript]

<- redo.ifchange process.argv.2 + '.ls'

fs.read-file-sync process.argv[2] + '.ls', \utf8
|> LiveScript.compile
|> process.stdout.write

licence

GPL v3. © 2014 Matt Brennan

Keywords

build

FAQs

Package last updated on 27 Apr 2014

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