{"id":30107042,"url":"https://github.com/benignware/sstring","last_synced_at":"2025-08-10T01:33:00.739Z","repository":{"id":57369059,"uuid":"169227087","full_name":"benignware/sstring","owner":"benignware","description":"A scss library for working with strings","archived":false,"fork":false,"pushed_at":"2019-02-05T12:10:39.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-05T13:44:31.452Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/benignware.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":"2019-02-05T11:01:13.000Z","updated_at":"2019-02-05T12:09:07.000Z","dependencies_parsed_at":"2022-09-15T21:22:45.490Z","dependency_job_id":null,"html_url":"https://github.com/benignware/sstring","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/benignware/sstring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fsstring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fsstring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fsstring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fsstring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benignware","download_url":"https://codeload.github.com/benignware/sstring/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fsstring/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269663321,"owners_count":24455796,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-08-10T01:31:59.026Z","updated_at":"2025-08-10T01:33:00.654Z","avatar_url":"https://github.com/benignware.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sstring\n\nA scss library for working with strings\n\n\n## Install\n\n```cli\nnpm i sstring -D\n```\n\n## Usage\n\nCurrently sstring consists of two functions only, `string-camelize` and `string-capitalize` and they're just doing what the name implies.\n\nHere's how it works at a blush:\n\n```scss\n@each $name, $value in (\n  primary: yellow,\n  secondary: peachpuff\n) {\n  .u-background#{string-capitalize($name)} {\n    background: $value;\n  }\n}\n\n\n@each $value in (xx-small, x-small, small, medium, large, x-large, xx-large) {\n  .u-#{string-camelize(fontSize + '-' + $value)} {\n    font-size: $value,\n  }\n}\n```\n\nWhich results in:\n\n```css\n.u-backgroundPrimary {\n  background: yellow;\n}\n\n.u-backgroundSecondary {\n  background: peachpuff;\n}\n\n.u-fontSizeXxSmall {\n  font-size: xx-small;\n}\n\n.u-fontSizeXSmall {\n  font-size: x-small;\n}\n\n.u-fontSizeSmall {\n  font-size: small;\n}\n\n.u-fontSizeMedium {\n  font-size: medium;\n}\n\n.u-fontSizeLarge {\n  font-size: large;\n}\n\n.u-fontSizeXLarge {\n  font-size: x-large;\n}\n\n.u-fontSizeXxLarge {\n  font-size: xx-large;\n}\n```\n\n## API\n\n#### string-camelize($string)\n\nTransforms a string to camelCase.\n\n\n#### string-capitalize($string)\n\nCapitalizes a string.\n\n\n\n## Development\n\nIn order to run specs, issue the following from your terminal:\n\n```cli\nnpm test\n```\n\nRun dev-server\n\n```cli\nnpm start\n```\n\nCreate a build (for whatever purpose)\n\n```cli\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenignware%2Fsstring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenignware%2Fsstring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenignware%2Fsstring/lists"}