{"id":16349459,"url":"https://github.com/jednano/postcss-circle","last_synced_at":"2025-03-23T00:33:26.358Z","repository":{"id":35587276,"uuid":"39860022","full_name":"jednano/postcss-circle","owner":"jednano","description":"PostCSS plugin to insert a circle with color.","archived":false,"fork":false,"pushed_at":"2017-11-02T17:53:51.000Z","size":67,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T04:17:31.318Z","etag":null,"topics":["circle","postcss","postcss-plugin"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/jednano.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-07-28T22:04:48.000Z","updated_at":"2024-04-26T12:17:34.000Z","dependencies_parsed_at":"2022-09-17T11:12:24.023Z","dependency_job_id":null,"html_url":"https://github.com/jednano/postcss-circle","commit_stats":null,"previous_names":["jedmao/postcss-circle"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fpostcss-circle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fpostcss-circle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fpostcss-circle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fpostcss-circle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jednano","download_url":"https://codeload.github.com/jednano/postcss-circle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221841530,"owners_count":16890019,"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":["circle","postcss","postcss-plugin"],"created_at":"2024-10-11T00:59:50.441Z","updated_at":"2024-10-28T14:38:45.660Z","avatar_url":"https://github.com/jednano.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss-circle\n\n\u003cimg align=\"right\" width=\"135\" height=\"95\"\n\ttitle=\"Philosopher’s stone, logo of PostCSS\"\n\tsrc=\"http://postcss.github.io/postcss/logo-leftp.png\"\u003e\n\n[![NPM version](http://img.shields.io/npm/v/postcss-circle.svg?style=flat)](https://www.npmjs.org/package/postcss-circle)\n[![npm license](http://img.shields.io/npm/l/postcss-circle.svg?style=flat-square)](https://www.npmjs.org/package/postcss-circle)\n[![Travis Build Status](https://img.shields.io/travis/jedmao/postcss-circle.svg)](https://travis-ci.org/jedmao/postcss-circle)\n[![codecov](https://codecov.io/gh/jedmao/postcss-circle/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/postcss-circle)\n[![Dependency Status](https://gemnasium.com/badges/github.com/jedmao/postcss-circle.svg)](https://gemnasium.com/github.com/jedmao/postcss-circle)\n\n[![npm](https://nodei.co/npm/postcss-circle.svg?downloads=true)](https://nodei.co/npm/postcss-circle/)\n\n[PostCSS](https://github.com/postcss/postcss) plugin to insert a circle with color.\n\n## Introduction\n\nCreating a circle in CSS [isn't terribly difficult](http://davidwalsh.name/css-circles); however, it could be easier and more expressive:\n\n```css\n.circle {\n\tcircle: \u003cdiameter\u003e [color];\n}\n```\n\nThe `diameter` is required and the `color` is optional. You don't have to remember the order, because you can swap their positions.\n\nLet's create a `red` circle with a `100px` diameter:\n\n```css\n.circle {\n\tcircle: 100px red;\n}\n```\n\nThis transpiles into:\n\n```css\n.circle {\n\tborder-radius: 50%;\n\twidth: 100px;\n\theight: 100px;\n\tbackground-color: red;\n}\n```\n\nThat's it, really.\n\n## Installation\n\n```\n$ npm install postcss-circle\n```\n\n## Usage\n\n### JavaScript\n\n```js\npostcss([ require('postcss-circle') ]);\n```\n\n### TypeScript\n\n```ts\nimport * as postcssCircle from 'postcss-circle';\n\npostcss([ postcssCircle ]);\n```\n\n## Options\n\nNone at this time.\n\n## Testing\n\nRun the following command:\n\n```\n$ npm test\n```\n\nThis will build scripts, run tests and generate a code coverage report. Anything less than 100% coverage will throw an error.\n\n### Watching\n\nFor much faster development cycles, run the following commands in 2 separate processes:\n\n```\n$ npm run build:watch\n```\n\nCompiles TypeScript source into the `./dist` folder and watches for changes.\n\n```\n$ npm run watch\n```\n\nRuns the tests in the `./dist` folder and watches for changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjednano%2Fpostcss-circle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjednano%2Fpostcss-circle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjednano%2Fpostcss-circle/lists"}