{"id":18358805,"url":"https://github.com/uppercod/stylis-pack","last_synced_at":"2026-01-04T05:45:29.694Z","repository":{"id":57373772,"uuid":"285016885","full_name":"UpperCod/stylis-pack","owner":"UpperCod","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-30T05:45:36.000Z","size":32,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T09:46:01.632Z","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/UpperCod.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":"2020-08-04T15:12:25.000Z","updated_at":"2020-08-30T07:59:57.000Z","dependencies_parsed_at":"2022-09-17T16:51:48.191Z","dependency_job_id":null,"html_url":"https://github.com/UpperCod/stylis-pack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"UpperCod/pkg-base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fstylis-pack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fstylis-pack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fstylis-pack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fstylis-pack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UpperCod","download_url":"https://codeload.github.com/UpperCod/stylis-pack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239036115,"owners_count":19571441,"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:19:34.134Z","updated_at":"2025-10-30T19:30:40.956Z","avatar_url":"https://github.com/UpperCod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stylis-pack\n\n[Stylis](https://github.com/thysultan/stylis.js) is fast to preprocess CSS fragments, nested, associate prefix and minimize code. Stylis-pack simply adds a layer for managing asynchronous plugins before serialization to include module import support, asynchronous parsing in parallel, and utilities for CSS management, achieving a PostCss-like effect.\n\n## Submodules\n\n1. [stylis-pack/utils](./src/utils)\n2. [stylis-pack/plugin-import](./src/plugins/plugin-import)\n\n## Install\n\n```bash\nnpm install stylis stylis-pack\n```\n\n## Usage\n\n```js\nimport { serialize, stringify } from \"stylis\";\nimport path from \"path\";\nimport { readFile } from \"fs/promises\";\nimport { load } from \"stylis-pack/load\";\nimport { pluginImport } from \"stylis-pack/plugin-import\";\n\nasync function readCss(file) {\n    const { css } = await load(\n        {\n            file,\n            code: await readFile(file, \"utf-8\"),\n        },\n        [pluginImport({})]\n    );\n    return serialize(css, stringify);\n}\n\nreadCss(path.join(process.cwd(), \"./test/style.css\")).then(console.log);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fstylis-pack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuppercod%2Fstylis-pack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fstylis-pack/lists"}