{"id":26502834,"url":"https://github.com/grassator/iamdee","last_synced_at":"2025-03-20T18:35:44.200Z","repository":{"id":66098728,"uuid":"42609369","full_name":"grassator/iamdee","owner":"grassator","description":"Small AMD loader for inlining","archived":false,"fork":false,"pushed_at":"2018-11-29T17:05:47.000Z","size":81,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T19:17:48.589Z","etag":null,"topics":["amd-loader","javascript","js","module"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/grassator.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-16T19:42:10.000Z","updated_at":"2024-11-26T08:27:52.000Z","dependencies_parsed_at":"2023-03-10T23:37:01.123Z","dependency_job_id":null,"html_url":"https://github.com/grassator/iamdee","commit_stats":{"total_commits":56,"total_committers":5,"mean_commits":11.2,"dds":0.4464285714285714,"last_synced_commit":"8a82cc35c0ab47936ed6ee2d0c3464c885f4d7e8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grassator%2Fiamdee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grassator%2Fiamdee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grassator%2Fiamdee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grassator%2Fiamdee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grassator","download_url":"https://codeload.github.com/grassator/iamdee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244671875,"owners_count":20491269,"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":["amd-loader","javascript","js","module"],"created_at":"2025-03-20T18:35:42.876Z","updated_at":"2025-03-20T18:35:44.176Z","avatar_url":"https://github.com/grassator.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iamdee\n\n[![NPM version](https://badge.fury.io/js/iamdee.svg)](https://npmjs.org/package/iamdee)\n[![Build Status][travis-image]][travis-url]\n\n[project-url]: https://github.com/grassator/iamdee\n[travis-url]: https://travis-ci.org/grassator/iamdee\n[travis-image]: https://travis-ci.org/grassator/iamdee.svg?branch=master\n\n\nSmall AMD loader designed for inlining into the page – just ~2kb (~1kb gzipped). It has original `require.js`-compatible API and should be a stand-in replacement if you don't require advanced features like plugins, paths or shims. \n\n## Usage\n\nAdd inline script from the minified file from the `dist` folder into your page. Then in your code you can use regular `require` / `define` functions:\n\n```js\nrequire(['your-dependency'], function (yourDependency) {\n    // your code\n});\n```\n\nor\n\n```js\ndefine(['your-dependency'], function (yourDependency) {\n    // your code\n});\n```\n\n## Supported Features\n\n* Named modules\n* Anonymous modules\n* `baseUrl` config\n* Loading non-AMD scripts\n\n## Browser Support\n\n* Evergreen (Chrome, Firefox, Opera, Safari, Edge)\n* IE9+\n\n\u003e If you only need to support evergreen browsers you can save ~100 bytes by\nusing `dist/index.modern.min.js` custom build.\n\n## Error Codes\n\nTo save bytes iamdee does not include moduleError message strings and\ninstead uses moduleError codes. Meaning of each code is presented below:\n\n1. define() call without id only works when script is loaded via require().\n2. require()'d module must not have id in its define() statement or match\nthe one specified in the requesting require() statement.\n3. Synchronous require of the form `const foo = require(\"foo\")` is only allowed for already loaded modules.\n4. Module loading failed because its dependency failed to load. The name of the failed dependency is written after the error code.\n5. Failed to load the script. Usually this indicates a network or a security policy error. \n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2018 Dmitriy Kubyshkin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrassator%2Fiamdee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrassator%2Fiamdee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrassator%2Fiamdee/lists"}