{"id":18774216,"url":"https://github.com/leny/prefiks","last_synced_at":"2025-07-14T04:04:41.654Z","repository":{"id":18539734,"uuid":"21740651","full_name":"leny/prefiks","owner":"leny","description":"Get the vendors prefixes of a css properties, according to caniuse data.","archived":false,"fork":false,"pushed_at":"2020-02-20T21:57:07.000Z","size":26,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T00:54:57.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/leny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-11T15:09:45.000Z","updated_at":"2019-04-02T14:18:13.000Z","dependencies_parsed_at":"2022-09-02T03:41:25.245Z","dependency_job_id":null,"html_url":"https://github.com/leny/prefiks","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fprefiks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fprefiks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fprefiks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fprefiks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leny","download_url":"https://codeload.github.com/leny/prefiks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248689376,"owners_count":21145923,"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-07T19:37:44.949Z","updated_at":"2025-04-13T09:21:49.342Z","avatar_url":"https://github.com/leny.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prefiks \n\n![NPM version](http://img.shields.io/npm/v/prefiks.svg) ![Build Status](http://img.shields.io/travis/leny/prefiks.svg) ![Dependency Status](https://david-dm.org/leny/prefiks.svg) ![Downloads counter](http://img.shields.io/npm/dm/prefiks.svg)\n\n\u003e Get the vendors prefixes of a css properties, according to [caniuse](http://caniuse.com) datas.\n\n* * * \n\n## Getting Started\n\nInstall the module with: `npm install prefiks`\n\nInclude it in your scripts with: `prefiks = require( \"prefiks\" );`\n\n## Documentation\n\nThe **prefiks** module exposes a function that can be called by two different forms.\n\nThe `prefix` functions returns an array with the prefixes to use for the given browser(s) versions (it always returns an array, even empty).  \nThe prefixes are reverse-ordered by length (longest prefix first).\n\n### One browser form\n\n    prefiks( feature, browser [, version_range = \"*\" ] )\n    \n* `feature` is the name of the feature on [caniuse website](http://caniuse.com) (look at the *feat* hash value in the URL).\n* `browser` is the name of the browser to examine.\n* `version_range` is a [semver version range](https://github.com/isaacs/node-semver#ranges) to examine.\n\n### Multiple browsers form\n\n    prefiks( feature, browsers )\n    \n* `feature` is the name of the feature on [caniuse website](http://caniuse.com) (look at the *feat* hash value in the URL).\n* `browsers` is an object of browsers/version to examine, like :\n\n```javascript\n    {\n        \"Internet Explorer\": 9,\n        \"chrome\": \"\u003c=30\",\n        \"firefox\": \"\u003e28\",\n        \"opera\": \"*\"\n    }\n```\n\n### `browser`'s aliases\n\nThe supported values for `browser` argument are listed bellow. These are **case insensitive**.\n\n* `ie`, `internet explorer`, `internet-explorer`, `internet_explorer`, `internetexplorer`\n* `firefox`, `ff`\n* `chrome`\n* `safari`\n* `opera`\n* `ios_saf`, `ios`, `ios-safari`\n* `op_mini`, `opera-mini`, `opera_mini`, `operamini`\n* `android`, `android-browser`\n* `op_mob`, `opera-mobile`, `operamobile`, `opera_mobile`\n* `bb`, `blackberry`, `blackberry-browser`\n* `and_chr`, `android-chrome`, `android_chrome`, `androidchrome`\n* `and_ff`, `android-firefox`, `android_firefox`, `androidfirefox`\n* `ie_mob`, `ie-mobile`, `ie_mobile`, `iemobile`\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n### TODO\n\n- [ ] Add more browsers aliases\n- [ ] Add more test cases\n- [ ] AMD implementation\n\n## Release History\n\n* **0.3.0**: Sorting prefixes by length (*14/07/14*)\n* **0.2.0**: Multiple browser form (*14/07/14*)\n* **0.1.0**: Initial release (*11/07/14*)\n\n## License\nCopyright (c) 2014 Leny  \nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleny%2Fprefiks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleny%2Fprefiks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleny%2Fprefiks/lists"}