{"id":18355412,"url":"https://github.com/charto/charto-loader","last_synced_at":"2025-04-10T01:37:26.690Z","repository":{"id":57197209,"uuid":"131685674","full_name":"charto/charto-loader","owner":"charto","description":"Loader tools for Charto style projects","archived":false,"fork":false,"pushed_at":"2018-11-22T08:18:36.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T22:06:54.397Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/charto.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":"2018-05-01T07:01:58.000Z","updated_at":"2018-11-21T14:52:18.000Z","dependencies_parsed_at":"2022-09-01T06:01:43.284Z","dependency_job_id":null,"html_url":"https://github.com/charto/charto-loader","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charto%2Fcharto-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charto%2Fcharto-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charto%2Fcharto-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charto%2Fcharto-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charto","download_url":"https://codeload.github.com/charto/charto-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248141398,"owners_count":21054450,"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":[],"created_at":"2024-11-05T22:06:51.464Z","updated_at":"2025-04-10T01:37:26.671Z","avatar_url":"https://github.com/charto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# charto-loader\n\nThis is the most awesome JavaScript / TypeScript module loader. It combines the superpowers of:\n\n- [SystemJS](https://github.com/systemjs/systemjs#readme) for in-browser development without any tooling.\n- [cresolve](https://github.com/charto/cresolve#readme) for fully automatic configuration using Node.js module resolution.\n\n## Features\n\n- Looks for `node_modules` and inside, in the same places Node.js would.\n- Automatic [UNPKG](https://unpkg.com/) fallback when a package is not yet installed.\n- Handles `browser` mappings in `package.json` files.\n- Transpiles ES6 using TypeScript compiler (by default).\n- Generates SystemJS configuration JSON to easily eliminate dependency on this library and switch to vanilla SystemJS.\n\n## Usage\n\nImport a main `App.ts` file from HTML like this:\n\n```HTML\n\u003cscript src=\"//unpkg.com/charto-loader@1/loader.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n\ncharto.initSystemTS(function() {\n\tSystem.import('./App.ts');\n});\n\n\u003c/script\u003e\n```\n\nYou can write `./src/App` (`.ts` or `.tsx` extension is added) or `./dist/App` (`.js` extension is added) instead.\nIf your project is not TypeScript (**but why?**), use `charto.initSystem` and\nadd a first argument with a SystemJS configuration object or configuration file address,\nsetting up a transpiler if necessary.\n\nIt loads [core-js](https://github.com/zloirock/core-js#readme) if `Promise` support is missing (mainly in IE 11) and\n[SystemJS](https://github.com/systemjs/systemjs#readme) from a CDN or under `node_modules` if present.\n[cresolve](https://github.com/charto/cresolve#readme) is included in the loader bundle.\n\n`loader.min.js` is the minified version, `loader.src.js` is for debugging without minification.\n\nTo print the auto-generated SystemJS configuration, use:\n\n```TypeScript\nimport charto from 'charto-loader';\n\nconsole.log(JSON.stringify(charto.systemConfig, null, '\\t'));\n```\n\n# License\n\n[The MIT License](https://raw.githubusercontent.com/charto/charto-loader/master/LICENSE)\n\nCopyright (c) 2018- BusFaster Ltd\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharto%2Fcharto-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharto%2Fcharto-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharto%2Fcharto-loader/lists"}