{"id":20056213,"url":"https://github.com/devgru/z-indices","last_synced_at":"2025-03-02T09:26:42.198Z","repository":{"id":57405019,"uuid":"76148559","full_name":"devgru/z-indices","owner":"devgru","description":"A simple javascript utility for calculating z-index","archived":false,"fork":false,"pushed_at":"2017-03-11T14:19:15.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-16T09:06:25.153Z","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/devgru.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":"2016-12-11T01:58:27.000Z","updated_at":"2017-01-10T21:07:48.000Z","dependencies_parsed_at":"2022-09-03T19:31:23.643Z","dependency_job_id":null,"html_url":"https://github.com/devgru/z-indices","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/devgru%2Fz-indices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgru%2Fz-indices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgru%2Fz-indices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgru%2Fz-indices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devgru","download_url":"https://codeload.github.com/devgru/z-indices/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241484249,"owners_count":19970246,"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-13T12:52:30.562Z","updated_at":"2025-03-02T09:26:42.175Z","avatar_url":"https://github.com/devgru.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# z-indices\n\n\u003e A simple javascript utility for calculating z-index.\n\nDistributed as UMD module.\n\n## Installing\n\n```sh\n$ yarn add z-indices\n# or\n$ npm install --save z-indices\n```\n\n## Usage\n\nProvide configuration dictionary object then pass arrays of keys to calculate z-index.\n\n```js\nimport zIndices from 'z-indices';\n\nconst zIndex = zIndices({\n  'foreground': 10,\n  'background': 0,\n  'popup': 1000\n});\n\nzIndex(['foreground', 'popup']); // 1010\n```\n\n## Development\n\n* Run tests: `yarn test`;\n* Build `yarn build`;\n\n## License\n\nMIT © [Dmitriy Semyushkin](https://devg.ru)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgru%2Fz-indices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevgru%2Fz-indices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgru%2Fz-indices/lists"}