Comparing version 0.1.2 to 1.0.0
@@ -13,7 +13,8 @@ /* jslint node: true */ | ||
var src = ''; | ||
var stream = through(write, end); | ||
return through(write, end); | ||
return stream; | ||
function write(buffer) { | ||
src += buffer; | ||
function write(data) { | ||
src += data; | ||
} | ||
@@ -25,3 +26,3 @@ | ||
this.queue(parser.generate()); | ||
} catch(e) { | ||
} catch (e) { | ||
stream.emit('error', e); | ||
@@ -28,0 +29,0 @@ } |
{ | ||
"name": "jisonify", | ||
"version": "0.1.2", | ||
"version": "1.0.0", | ||
"description": "Browserify plugin for Jison parsers.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,4 @@ # Jisonify | ||
Mix Jison parsers into your JS files and Browserify projects without needing additional build steps. | ||
[![NPM version](https://badge.fury.io/js/jisonify.png)](https://npmjs.org/package/jisonify) | ||
@@ -70,2 +72,3 @@ [![Build Status](https://travis-ci.org/schmich/jisonify.png?branch=master)](https://travis-ci.org/schmich/jisonify) | ||
<!-- calc.html ---> | ||
<!DOCTYPE html> | ||
<html> | ||
@@ -85,2 +88,16 @@ <head> | ||
### Programmatic example | ||
```js | ||
var browserify = require('browserify'); | ||
var jisonify = require('jisonify'); | ||
var b = browserify(); | ||
b.add('./main.js'); | ||
b.transform(jisonify); | ||
b.bundle(function(err, src) { | ||
// ... | ||
}); | ||
``` | ||
## License | ||
@@ -87,0 +104,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4558
0
105