{"id":21387511,"url":"https://github.com/nju33/postcss-times","last_synced_at":"2025-03-16T12:28:34.862Z","repository":{"id":57141679,"uuid":"47196301","full_name":"nju33/postcss-times","owner":"nju33","description":"PostCSS plugin that to use instead of !important","archived":false,"fork":false,"pushed_at":"2016-06-30T06:12:19.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-22T12:13:21.958Z","etag":null,"topics":["postcss-plugins"],"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/nju33.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":"2015-12-01T14:55:11.000Z","updated_at":"2019-08-28T16:51:59.000Z","dependencies_parsed_at":"2022-09-03T07:40:59.606Z","dependency_job_id":null,"html_url":"https://github.com/nju33/postcss-times","commit_stats":null,"previous_names":["totora0155/postcss-times"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nju33%2Fpostcss-times","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nju33%2Fpostcss-times/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nju33%2Fpostcss-times/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nju33%2Fpostcss-times/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nju33","download_url":"https://codeload.github.com/nju33/postcss-times/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235204562,"owners_count":18952331,"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":["postcss-plugins"],"created_at":"2024-11-22T12:13:25.484Z","updated_at":"2025-01-23T00:14:34.073Z","avatar_url":"https://github.com/nju33.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss-times\n\n[![npm version](https://badge.fury.io/js/postcss-times.svg)](https://badge.fury.io/js/postcss-times)\n[![Build Status](https://travis-ci.org/totora0155/postcss-times.svg?branch=master)](https://travis-ci.org/totora0155/postcss-times)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n\n\u003cp\u003e\u003cimg width=\"20\" src=\"https://camo.githubusercontent.com/2ec260a9d4d3dcc109be800af0b29a8471ad5967/687474703a2f2f706f73746373732e6769746875622e696f2f706f73746373732f6c6f676f2e737667\"\u003e \u003ca href=\"https://github.com/postcss/postcss\"\u003ePostCSS\u003c/a\u003e plugin that to use instead of !important\u003c/p\u003e\n\n---\n\n## Install\n\n```\nnpm i postcss-times\n```\n\n## Usage\n\nWrite css.\n\n```css\n#id:times(2) {}\n.class:times(3) {}\n.parent .child:times(2) {}\n.parent .child.multi:times(2) {}\n[attr=class]:times(2) {}\n[attr^=class]:times(2) {}\n[attr$=class]:times(2) {}\n[attr=\"class\"]:times(2) {}\n\n#id:times(str) {}\n```\n\n## Transform\n\n```javascript\nconst fs = require('fs');\nconst postcss = require('postcss');\nconst times = require('postcss-times');\n\nconst css = fs.readFileSync('./sample.css', 'utf-8');\n\npostcss([times])\n  .process(css)\n  .then(result =\u003e console.log(result.css));\n```\n\n## Output\n\nGet like this.\n\n```css\n#id#id {}\n.class.class.class {}\n.parent .child.child {}\n.parent .child.multi.multi {}\n[attr=class][attr=class] {}\n[attr^=class][attr^=class] {}\n[attr$=class][attr$=class] {}\n[attr=\"class\"][attr=\"class\"] {}\n\n#id {}\n```\n\n## Run to example\n\n**1** Clone this\n\n```\ngit clone git@github.com:totora0155/postcss-times.git\n```\n\n**2** Change directory\n```\ncd postcss-times\n```\n\n**3** Install modules\n```\nnpm install\n```\n\n**4** Run to script\n```\ncd examples \u0026\u0026 node postcss.js\n```\n\n## Change log\n\n|version|log|\n|:-:|:--|\n|1.0.0|Rewrite es6|\n|0.0.1|Release!|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnju33%2Fpostcss-times","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnju33%2Fpostcss-times","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnju33%2Fpostcss-times/lists"}