{"id":16594174,"url":"https://github.com/jsdf/css-modules-loader-core-sync","last_synced_at":"2026-04-25T03:32:44.161Z","repository":{"id":66018850,"uuid":"45008601","full_name":"jsdf/css-modules-loader-core-sync","owner":"jsdf","description":"synchronous version of css-modules-loader-core","archived":false,"fork":false,"pushed_at":"2015-10-27T01:25:44.000Z","size":136,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T06:40:46.217Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsdf.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":"2015-10-27T01:20:28.000Z","updated_at":"2018-03-14T08:30:55.000Z","dependencies_parsed_at":"2023-02-19T21:30:39.268Z","dependency_job_id":null,"html_url":"https://github.com/jsdf/css-modules-loader-core-sync","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/jsdf%2Fcss-modules-loader-core-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fcss-modules-loader-core-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fcss-modules-loader-core-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fcss-modules-loader-core-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsdf","download_url":"https://codeload.github.com/jsdf/css-modules-loader-core-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242251137,"owners_count":20096936,"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-10-11T23:45:25.750Z","updated_at":"2026-04-25T03:32:39.141Z","avatar_url":"https://github.com/jsdf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# css-modules-loader-core-sync\nsynchronous version of css-modules-loader-core\n\nAPI is the same as css-modules-loader-core except that methods return values rather than promises of values.\n\n### example\n\n```js\nvar fs = require('fs');\nvar path = require('path');\nvar resolve = require('resolve');\nvar SyncCore = require('css-modules-loader-core-sync');\n\nfunction pathFetcher(filepath, relativeTo) {\n  return resolve.sync(filepath.replace(/[\"']/g, ''), {basedir: path.dirname(relativeTo)});\n}\n\nvar syncCore = new SyncCore();\n\nvar filepath = __dirname + '/fixtures/a.css';\nvar src = fs.readFileSync(filepath, {encoding: 'utf8'});\n\nvar result = syncCore.load(src, filepath, '', pathFetcher);\n\nconsole.log(result.exportTokens); // =\u003e exported classes\nconsole.log(result.injectableSource); // =\u003e compiled css\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Fcss-modules-loader-core-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsdf%2Fcss-modules-loader-core-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Fcss-modules-loader-core-sync/lists"}