{"id":13780533,"url":"https://github.com/KittyGiraudel/sass-semver","last_synced_at":"2025-05-11T13:32:29.576Z","repository":{"id":143907537,"uuid":"49957898","full_name":"KittyGiraudel/sass-semver","owner":"KittyGiraudel","description":"[UNMAINTAINED] A Sass implementation of node-semver.","archived":true,"fork":false,"pushed_at":"2021-03-05T14:08:55.000Z","size":113,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-17T01:09:08.350Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"SCSS","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/KittyGiraudel.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-01-19T14:26:35.000Z","updated_at":"2023-06-12T14:32:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"c28e01ce-a87e-4f69-b156-c674528f7b71","html_url":"https://github.com/KittyGiraudel/sass-semver","commit_stats":null,"previous_names":["hugogiraudel/sass-semver"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KittyGiraudel%2Fsass-semver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KittyGiraudel%2Fsass-semver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KittyGiraudel%2Fsass-semver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KittyGiraudel%2Fsass-semver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KittyGiraudel","download_url":"https://codeload.github.com/KittyGiraudel/sass-semver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225056836,"owners_count":17414219,"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-08-03T18:01:16.916Z","updated_at":"2024-11-17T15:31:18.528Z","avatar_url":"https://github.com/KittyGiraudel.png","language":"SCSS","funding_links":[],"categories":["Projects"],"sub_categories":[],"readme":"# Sass SemVer\n\nA Sass implementation of [node-semver](https://github.com/npm/node-semver). This project is inspired by [sass-deprecate](https://github.com/salesforce-ux/sass-deprecate) from Salesforce.\n\n```sh\nnpm install sass-semver\n```\n\n## Public API\n\n* `valid($version)`  \n  Returns whether `$version` a is valid SemVer version.\n* `clean($version)`  \n  Returns version without leading `v` or `=`.\n* `inc($version, $release)`  \n  Returns `$version` with incremented `$release` component.\n* `major($version)`  \n  Returns major component from `$version`.\n* `minor($version)`  \n  Returns minor component from `$version`.\n* `patch($version)`  \n  Returns patch component from `$version`.\n* `gt($v1, $v2)`  \n  Returns whether `$v1` is greater than `$v2` (i.e. `$v1 \u003e $v2`).\n* `gte($v1, $v2)`  \n  Returns whether `$v1` is greater than or equal to `$v2` (i.e. `$v1 \u003e= $v2`).\n* `lt($v1, $v2)`  \n  Returns whether `$v1` is lesser than `$v2` (i.e. `$v1 \u003c $v2`).\n* `lte($v1, $v2)`  \n  Returns whether `$v1` is lesser than or equal to `$v2` (i.e. `$v1 \u003c= $v2`).\n* `eq($v1, $v2)`  \n  Returns whether `$v1` is equal to `$v2` (i.e. `$v1 == $v2`).\n* `neq($v1, $v2)`  \n  Returns whether `$v1` is not equal to `$v2` (i.e. `$v1 != $v2`).\n* `cmp($v1, $comparator, $v2)`  \n  Calls the corresponding function above depending on which `$comparator` is being given. Warning: `===` and `!==` perform string comparison, which `==` and `!=` call `eq` and `neq` methods.\n\n## Tests\n\n```sh\nnpm test\n```\n\n## Build dist file\n\n```\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKittyGiraudel%2Fsass-semver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKittyGiraudel%2Fsass-semver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKittyGiraudel%2Fsass-semver/lists"}