{"id":26403452,"url":"https://github.com/fossamagna/gasify","last_synced_at":"2025-03-17T15:33:52.329Z","repository":{"id":2848299,"uuid":"47623177","full_name":"fossamagna/gasify","owner":"fossamagna","description":"Browserify plugin for Google Apps Script","archived":false,"fork":false,"pushed_at":"2023-10-11T20:15:24.000Z","size":1063,"stargazers_count":40,"open_issues_count":6,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T10:32:30.818Z","etag":null,"topics":["browserify","google-apps-script"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fossamagna.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-08T13:17:05.000Z","updated_at":"2024-03-14T18:06:50.000Z","dependencies_parsed_at":"2023-02-10T06:50:15.742Z","dependency_job_id":"e74b8e7c-40ae-4cbb-81b8-6eacc0bdb616","html_url":"https://github.com/fossamagna/gasify","commit_stats":{"total_commits":199,"total_committers":9,"mean_commits":22.11111111111111,"dds":0.6783919597989949,"last_synced_commit":"93809a28c2a6721d4ff24d320a2b599461746d3c"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fossamagna%2Fgasify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fossamagna%2Fgasify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fossamagna%2Fgasify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fossamagna%2Fgasify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fossamagna","download_url":"https://codeload.github.com/fossamagna/gasify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244058644,"owners_count":20391142,"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","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":["browserify","google-apps-script"],"created_at":"2025-03-17T15:33:50.128Z","updated_at":"2025-03-17T15:33:52.321Z","avatar_url":"https://github.com/fossamagna.png","language":"JavaScript","readme":"# gasify [![NPM version][npm-image]][npm-url]  [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]  [![Coverage percentage][coveralls-image]][coveralls-url] [![Greenkeeper badge](https://badges.greenkeeper.io/fossamagna/gasify.svg)](https://greenkeeper.io/)\n\n[Browserify](http://browserify.org/) plugin for Google Apps Script.\n\n## About\n\nIn Google Apps Script, it must be top level function declaration that entry point called from [google.script.run](https://developers.google.com/apps-script/guides/html/reference/run).\nWhen `gasify` detect a function assignment expression to `global` object. it generate a top level function declaration statement.\n\n## example\n\nmain.js:\n```js\nvar echo = require('./echo');\nglobal.echo = echo;\n```\n\necho.js:\n```\nmodule.exports = function(message) {\n  return message;\n}\n```\n\nbuild:\n```\n$ browserify main.js -p gasify -o Code.gs\n```\n\nCode.gs\n```js\nvar global = this;function echo() {\n}(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"\u0026\u0026require;if(!u\u0026\u0026a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"\u0026\u0026require;for(var o=0;o\u003cr.length;o++)s(r[o]);return s})({1:[function(require,module,exports){\nmodule.exports = function(message) {\n  return message;\n};\n\n},{}],2:[function(require,module,exports){\n(function (global){\nvar echo = require('./echo');\nglobal.echo = echo;\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"./echo\":1}]},{},[2]);\n```\n\n## Installation\n\n```sh\n$ npm install gasify\n```\n\n## Usage\n\n### CLI\n\n```sh\n$ browserify main.js -p gasify -o Code.gs\n```\n\n### Options\n\nThe following options can be set via the API or command-line:\n\n`comment` {Boolean}: If `true` then generate a top level function declaration statement with comment. Default is `true`.\n\n[npm-image]: https://badge.fury.io/js/gasify.svg\n[npm-url]: https://npmjs.org/package/gasify\n[travis-image]: https://travis-ci.org/fossamagna/gasify.svg?branch=master\n[travis-url]: https://travis-ci.org/fossamagna/gasify\n[daviddm-image]: https://david-dm.org/fossamagna/gasify.svg\n[daviddm-url]: https://david-dm.org/fossamagna/gasify\n[coveralls-image]: https://coveralls.io/repos/github/fossamagna/gasify/badge.svg?branch=master\n[coveralls-url]: https://coveralls.io/github/fossamagna/gasify?branch=master\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffossamagna%2Fgasify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffossamagna%2Fgasify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffossamagna%2Fgasify/lists"}