{"id":19026840,"url":"https://github.com/psolbach/grip","last_synced_at":"2026-06-12T21:32:53.170Z","repository":{"id":17412873,"uuid":"20185723","full_name":"psolbach/grip","owner":"psolbach","description":":monkey_face: A lightweight include switch.","archived":false,"fork":false,"pushed_at":"2014-06-05T14:08:09.000Z","size":308,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T19:25:23.353Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/psolbach.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-05-26T12:41:35.000Z","updated_at":"2023-08-24T15:00:49.000Z","dependencies_parsed_at":"2022-08-30T13:01:22.513Z","dependency_job_id":null,"html_url":"https://github.com/psolbach/grip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/psolbach/grip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psolbach%2Fgrip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psolbach%2Fgrip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psolbach%2Fgrip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psolbach%2Fgrip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psolbach","download_url":"https://codeload.github.com/psolbach/grip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psolbach%2Fgrip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34263872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":[],"created_at":"2024-11-08T20:50:53.080Z","updated_at":"2026-06-12T21:32:53.139Z","avatar_url":"https://github.com/psolbach.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![asd](http://heimdash.com/grips.svg)  \ngrip.js\n=======\n\u003ca href=\"https://codeclimate.com/github/p0wly/gripjs\"\u003e\u003cimg src=\"https://codeclimate.com/github/p0wly/gripjs.png\" /\u003e\u003c/a\u003e\n\n  \nGrip.js is a lightweight (1kb) insertion switch for Javascript files.  \nThis can help replace Grunt or any other full-fledged build system in favor of a more minimal approach.  \nBorrowing from [require.js](https://github.com/jrburke/requirejs), a single script tag in your HTML will\n\n1. Insert an array of unpacked Javascript modules for development.\n2. Or a pretailored \u0026 minified production version of your JS.\n\n### Performance\n\nYour HTML remains untouched. Scripts are pulled in a dynamic fashion.  \nField tests have proven that this can speed up perceived and actual load time -- so don't wander off just yet.\n\n### Usage\n\nOptions live inside a `.js` which is referenced via data-attribute in the `\u003cscript\u003e`.  \nA sample embed would thusly look a whole lot like this:\n\n    \u003cscript charset=\"utf-8\" data-options=\"modules.js\" src=\"grip.min.js\"\u003e\u003c/script\u003e\n    \nYour `modules.js` should resemble something like this:\n\n    'use strict';\n    window.opt = {\n    \t\"debug\": true,\n    \t\"baseUrl\": \"optional/static/root\",\n    \t\"min\": \"/path/to/your.min.js\",\n    \t\"modules\": [\n    \t\t\"your\",\n    \t\t\"modules\"\n    \t\t]\n    }\n    \n### Workflow with shell.js\n\nUsing a shell script in the flavor of [shelljs](https://github.com/arturadib/shelljs) one could go about and\nfully integrate the generation of `modules.js` into the make/debug process.\nConsider this snippet where d, b, p, m map to opt.debug, opt.baseUrl, opt.min, opt.modules.\n\n    function makeGrip(d,b,p,m) {\n      var o = { \"debug\": d, \"baseUrl\": b, \"min\": \"/\" + p,\n        \"modules\": d ? m : [] }, file = \"'use strict'; window.opt = \"\n         + JSON.stringify(o)\n      \n      file.to(conf.base + conf.modules);\n    }\n\n\n    \n### Questions?\n\nFeel free to drop a line to p@psolbach.com or @___paul\n\n### Acknowledgements\n\nAerosmith didn't sue. Yet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsolbach%2Fgrip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsolbach%2Fgrip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsolbach%2Fgrip/lists"}