{"id":13414451,"url":"https://github.com/Asondo/mjs-polyfill","last_synced_at":"2025-03-14T21:32:40.495Z","repository":{"id":80838279,"uuid":"196442563","full_name":"Asondo/mjs-polyfill","owner":"Asondo","description":"Mongoose os example project with standardization polyfill","archived":false,"fork":false,"pushed_at":"2019-07-12T16:03:38.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-31T21:53:00.992Z","etag":null,"topics":["esp32","esp8266","example","mjslibrary","mongoose-os","nodejs","polyfill","require","setinterval"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Asondo.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-07-11T17:58:18.000Z","updated_at":"2023-11-27T19:23:21.000Z","dependencies_parsed_at":"2023-03-12T12:19:20.691Z","dependency_job_id":null,"html_url":"https://github.com/Asondo/mjs-polyfill","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asondo%2Fmjs-polyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asondo%2Fmjs-polyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asondo%2Fmjs-polyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asondo%2Fmjs-polyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Asondo","download_url":"https://codeload.github.com/Asondo/mjs-polyfill/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221509015,"owners_count":16834813,"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":["esp32","esp8266","example","mjslibrary","mongoose-os","nodejs","polyfill","require","setinterval"],"created_at":"2024-07-30T21:00:21.487Z","updated_at":"2024-10-26T07:31:10.215Z","avatar_url":"https://github.com/Asondo.png","language":"JavaScript","funding_links":[],"categories":["Awesome Mongoose OS [![Awesome](https://awesome.re/badge.svg)](https://awesome.re)"],"sub_categories":["Community Examples"],"readme":"# mjs-polyfill\n_Mongoose OS example project with standardization polyfill_\n\n### Usage:\nAt top of init.js add:\n```\nload('polyfill.js');\n```\n\n### Implements:\n#### _setTimeout/setInterval_\n```\nlet intervalId = setInterval(function() {\n    // Will repeate every 1000 ms (1 sec)\n}, 1000);\n```\n\n#### _clearTimeout/clearInterval_\n```\nclearTimeout(intervalId);\n```\n\n#### _NodeJS-like exporting system_\nmoduleName.js:\n```\nmodule.exports = {\n    name: 'moduleName.js',\n};\n```\n\n#### _NodeJS-like importing system_\ninit.js:\n```\nlet someModule = require('moduleName.js');\n```\n\n#### _console_\n```\nconsole.log('Required moduleName:', someModule.name);\n```\n\n###### _ESP8266 tested_","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAsondo%2Fmjs-polyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAsondo%2Fmjs-polyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAsondo%2Fmjs-polyfill/lists"}