{"id":16519968,"url":"https://github.com/schmich/jisonify","last_synced_at":"2025-08-04T03:37:24.962Z","repository":{"id":13220143,"uuid":"15904397","full_name":"schmich/jisonify","owner":"schmich","description":"A Browserify transform for Jison parsers.","archived":false,"fork":false,"pushed_at":"2015-10-14T03:11:27.000Z","size":258,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-01T16:58:54.144Z","etag":null,"topics":["browser","browserify","javascript","jison","language","lexer","parser","programming-language"],"latest_commit_sha":null,"homepage":"https://npmjs.org/package/jisonify","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schmich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-14T14:29:57.000Z","updated_at":"2022-07-19T07:42:51.000Z","dependencies_parsed_at":"2022-09-26T22:01:18.942Z","dependency_job_id":null,"html_url":"https://github.com/schmich/jisonify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/schmich/jisonify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmich%2Fjisonify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmich%2Fjisonify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmich%2Fjisonify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmich%2Fjisonify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schmich","download_url":"https://codeload.github.com/schmich/jisonify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmich%2Fjisonify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268644971,"owners_count":24283407,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","browserify","javascript","jison","language","lexer","parser","programming-language"],"created_at":"2024-10-11T16:49:03.775Z","updated_at":"2025-08-04T03:37:24.935Z","avatar_url":"https://github.com/schmich.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jisonify\n\nA [Browserify](https://github.com/substack/node-browserify) transform for [Jison](https://github.com/zaach/jison) parsers.\n\nMix Jison parsers into your JS files and Browserify projects without needing additional build steps.\n\n[![NPM version](https://badge.fury.io/js/jisonify.svg)](https://npmjs.org/package/jisonify)\n[![Build Status](https://travis-ci.org/schmich/jisonify.svg?branch=master)](https://travis-ci.org/schmich/jisonify)\n[![Dependency Status](https://gemnasium.com/schmich/jisonify.svg)](https://gemnasium.com/schmich/jisonify)\n\n## Installation\n\n```\nnpm install jisonify\n```\n\n## Usage\n\n```\nbrowserify -t jisonify main.js \u003e bundle.js\n```\n\n## Example\n\n```js\n// calc.jison\n%lex\n%%\n\n\\s+                   /* Skip whitespace. */\n[0-9]+                return 'NUMBER'\n\"-\"                   return '-'\n\"+\"                   return '+'\n\u003c\u003cEOF\u003e\u003e               return 'EOF'\n.                     return 'INVALID'\n\n/lex\n\n%left '+' '-'\n%start expressions\n%%\n\nexpressions\n  : expr EOF        { return $1; }\n  ;\n\nexpr\n  : expr '+' expr   { $$ = $1 + $3; }\n  | expr '-' expr   { $$ = $1 - $3; }\n  | NUMBER          { $$ = Number(yytext); }\n  ;\n```\n\n```js\n// main.js\nvar parser = require('./calc.jison').parser;\n\nexports = run = function() {\n  var input = document.getElementById('input');\n  var output = document.getElementById('output');\n  output.innerText = parser.parse(input.value);\n};\n```\n\n```\nbrowserify -t jisonify main.js \u003e bundle.js\n```\n\n```html\n\u003c!-- calc.html --\u003e\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cscript src=\"bundle.js\"\u003e\u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cform onsubmit=\"run(); return false;\"\u003e\n      \u003cinput type=\"text\" id=\"input\" value=\"50 + 2 - 10\" /\u003e\n      \u003cinput type=\"submit\" /\u003e\n      Result: \u003cspan id=\"output\"\u003e\u0026ndash;\u003c/span\u003e\n    \u003c/form\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n### Programmatic example\n\n```js\nvar browserify = require('browserify');\nvar jisonify = require('jisonify');\n\nvar b = browserify();\nb.add('./main.js');\nb.transform(jisonify);\nb.bundle(function(err, src) {\n  // ...\n});\n```\n\n## License\n\nCopyright \u0026copy; 2014 Chris Schmich\n\u003cbr /\u003e\nMIT License, See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschmich%2Fjisonify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschmich%2Fjisonify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschmich%2Fjisonify/lists"}