{"id":18067632,"url":"https://github.com/alanclarke/micro-amd","last_synced_at":"2025-04-11T21:20:58.158Z","repository":{"id":57296347,"uuid":"58001779","full_name":"alanclarke/micro-amd","owner":"alanclarke","description":"A tiny amd lib","archived":false,"fork":false,"pushed_at":"2018-08-11T00:03:35.000Z","size":28,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-08T23:46:21.456Z","etag":null,"topics":["ceh","cmh","implement"],"latest_commit_sha":null,"homepage":null,"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/alanclarke.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}},"created_at":"2016-05-03T21:08:52.000Z","updated_at":"2023-07-26T14:25:32.000Z","dependencies_parsed_at":"2022-09-07T03:20:46.458Z","dependency_job_id":null,"html_url":"https://github.com/alanclarke/micro-amd","commit_stats":null,"previous_names":["qubitproducts/micro-amd"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanclarke%2Fmicro-amd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanclarke%2Fmicro-amd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanclarke%2Fmicro-amd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanclarke%2Fmicro-amd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alanclarke","download_url":"https://codeload.github.com/alanclarke/micro-amd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248480421,"owners_count":21110939,"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":["ceh","cmh","implement"],"created_at":"2024-10-31T07:09:57.260Z","updated_at":"2025-04-11T21:20:58.133Z","avatar_url":"https://github.com/alanclarke.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Micro AMD\n\nA tiny, reliable amd module resolver for the browser\n\n## usage\n```js\nvar amd = require('micro-amd')\nvar api = amd({ base: 'http://example.com' })\n\n// module definition\namd.define('noop', [], function callback () {\n  return function noop () {}\n})\n\n// synchronous require\nvar noop = require('noop')\n// noop()\n\n// asynchronous require\namd.require(['noop'], function callback (noop) {\n  // noop()\n})\n\n// require util, submodules\namd.require(['require', 'module-a/lib/helper'], function callback (require) {\n  var helper = require('module-a/lib/helper')\n})\n\n//anonymous defines\n\n// anon.js\namd.define(function () {\n  return 'boop'\n})\n\n// consumer\namd.require('anon', function (anon) {\n  console.log(anon) // boop\n})\n\n// common.js\namd.define(['require', 'module', 'exports'], function (require, module, exports) {\n  module.exports = 'cjs'\n})\n```\n\n## run tests\n```js\nnpm test\n```\n\n## Want to work on this for your day job?\n\nThis project was created by the Engineering team at Qubit. As we use open source libraries, we make our projects public where possible.\n\nWe’re currently looking to grow our team, so if you’re a JavaScript engineer and keen on ES2016 React+Redux applications and Node micro services, why not get in touch? Work with like minded engineers in an environment that has fantastic perks, including an annual ski trip, yoga, a competitive foosball league, and copious amounts of yogurt.\n\nFind more details on our Engineering site. Don’t have an up to date CV? Just link us your Github profile! Better yet, send us a pull request that improves this project.`\nContact GitHub API Training Shop Blog About\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falanclarke%2Fmicro-amd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falanclarke%2Fmicro-amd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falanclarke%2Fmicro-amd/lists"}