Comparing version 0.0.4 to 0.0.5
@@ -7,8 +7,9 @@ #!/usr/bin/env node | ||
var path = require ("path"); | ||
var argp = require ("argp"); | ||
var brainfuck = require ("../lib"); | ||
var argv = require ("argp") | ||
var argv = argp.createParser ({ once: true }) | ||
.allowUndefinedArguments () | ||
.readPackage (__dirname + "/../package.json") | ||
.usages (["brainfuck <input_file> [options]"]) | ||
.usages (["brainfuck [options] <input_file>"]) | ||
.on ("argument", function (argv, argument, ignore){ | ||
@@ -19,4 +20,4 @@ if (argv.file) this.fail ("Too many arguments."); | ||
}) | ||
.on ("end", function (argv, fns){ | ||
if (!argv.file) fns.fail ("An input file is required."); | ||
.on ("end", function (argv){ | ||
if (!argv.file) this.fail ("An input file is required"); | ||
}) | ||
@@ -23,0 +24,0 @@ .body () |
@@ -51,4 +51,4 @@ "use strict"; | ||
var rl = readline.createInterface({ | ||
input: process.stdin, | ||
output: process.stdout | ||
input: process.stdin, | ||
output: process.stdout | ||
}); | ||
@@ -77,3 +77,3 @@ rl.setPrompt ("> ", 2); | ||
var run = function (start){ | ||
for (var i=start, ii=code.length; i<ii; i++, column++){ | ||
for (var i=start; i<code.length; i++, column++){ | ||
c = code.charCodeAt (i); | ||
@@ -80,0 +80,0 @@ |
{ | ||
"name": "brainless", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Interpreter for the Brainfuck esoteric language", | ||
@@ -12,3 +12,3 @@ "keywords": ["brainfuck", "interpreter"], | ||
"dependencies": { | ||
"argp": "*" | ||
"argp": "1.0.x" | ||
}, | ||
@@ -15,0 +15,0 @@ "preferGlobal": "true", |
brainfuck | ||
========= | ||
_Node.js project_ | ||
#### Interpreter for the Brainfuck esoteric language #### | ||
[![NPM version](https://badge.fury.io/js/brainless.png)](http://badge.fury.io/js/brainless "Fury Version Badge") | ||
[![Dependency Status](https://david-dm.org/gagle/node-brainfuck.png)](https://david-dm.org/gagle/node-brainfuck "David Dependency Manager Badge") | ||
[![NPM installation](https://nodei.co/npm/brainless.png?mini=true)](https://nodei.co/npm/brainless "NodeICO Badge") | ||
[Wikipedia page](http://en.wikipedia.org/wiki/Brainfuck). | ||
@@ -89,3 +90,3 @@ | ||
$ brainfuck -h | ||
Usage: brainfuck <input_file> [options] | ||
Usage: brainfuck [options] <input_file> | ||
@@ -92,0 +93,0 @@ Interpreter for the Brainfuck esoteric language |
Sorry, the diff of this file is not supported yet
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
11668
262
1
118
Updatedargp@1.0.x