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

nearley

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nearley - npm Package Compare versions

Comparing version 2.7.1 to 2.7.2

grammar.html

12

bin/nearley-railroad.js
#!/usr/bin/env node
var rr = require('railroad-diagrams');
try {
var rr = require('railroad-diagrams');
} catch(e) {
// optional dependency not fullfilled
console.log('Error: When you installed nearley, the dependency "railroad-diagrams" failed to install. Try running "npm install -g nearley" to re-install nearley. If that doesn\'t fix the problem, please file an issue on the nearley GitHub repository.')
process.exit(1)
}
var fs = require('fs');

@@ -8,3 +15,2 @@ var path = require('path');

var opts = nomnom

@@ -42,3 +48,3 @@ .script('nearley-railroad')

});
ret = '<style type="text/css">\n';

@@ -45,0 +51,0 @@ ret += fs.readFileSync(

{
"name": "nearley",
"version": "2.7.1",
"version": "2.7.2",
"description": "Simple, fast, powerful parser toolkit for JavaScript.",

@@ -9,5 +9,7 @@ "main": "lib/nearley.js",

"nomnom": "~1.6.2",
"railroad-diagrams": "git://github.com/tabatkins/railroad-diagrams.git#c36d1a7d0cf5ee2fdd33fcdc849d91f99ee459b9",
"randexp": "^0.4.2"
},
"optionalDependencies": {
"railroad-diagrams": "git://github.com/tabatkins/railroad-diagrams.git#c36d1a7d0cf5ee2fdd33fcdc849d91f99ee459b9"
},
"bin": {

@@ -14,0 +16,0 @@ "nearleyc": "bin/nearleyc.js",

Sorry, the diff of this file is not supported yet

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