{"id":20845919,"url":"https://github.com/davidguttman/cssify","last_synced_at":"2025-04-07T10:27:42.912Z","repository":{"id":6039995,"uuid":"7264412","full_name":"davidguttman/cssify","owner":"davidguttman","description":"Simple middleware for Browserify to add css styles to the browser.","archived":false,"fork":false,"pushed_at":"2018-10-07T08:15:07.000Z","size":46,"stargazers_count":121,"open_issues_count":5,"forks_count":19,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T08:12:06.562Z","etag":null,"topics":["browserify","css","javascript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/davidguttman.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}},"created_at":"2012-12-20T21:14:34.000Z","updated_at":"2024-12-18T01:54:20.000Z","dependencies_parsed_at":"2022-08-24T16:41:07.064Z","dependency_job_id":null,"html_url":"https://github.com/davidguttman/cssify","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidguttman%2Fcssify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidguttman%2Fcssify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidguttman%2Fcssify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidguttman%2Fcssify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidguttman","download_url":"https://codeload.github.com/davidguttman/cssify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247634570,"owners_count":20970558,"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":["browserify","css","javascript"],"created_at":"2024-11-18T02:14:27.469Z","updated_at":"2025-04-07T10:27:42.893Z","avatar_url":"https://github.com/davidguttman.png","language":"JavaScript","readme":"# cssify #\n\nA simple Browserify v2 transform for adding required styles to the browser.\n\n# Example\n\nIf you have a file `entry.js` that you want to require some css from `style.css`:\n\nstyle.css:\n``` css\nbody {\n  background: pink;\n}\n```\n\nentry.js:\n``` js\nvar styleNode = require('./style.css');\n\nconsole.log('The background is pink!')\n```\n\nInstall cssify into your app:\n\n```\n$ npm install cssify\n```\n\nWhen you compile your app, just pass `-t cssify` to browserify:\n\n```\n$ browserify -t cssify entry.js \u003e bundle.js\n```\n\n\n# Install\n\nWith [npm](https://npmjs.org):\n\n```\nnpm install cssify\n```\n\n# Bonus\n\nTo add a stylesheet from a url:\n\n``` js\n\nvar cssify = require('cssify')\n\ncssify.byUrl('//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css')\n\n// Bootstrap styles!\n\n```\n\n# License\n\nBSD\n\n# Misc\n\nThanks to substack's insert-css and domenic's simple-jadeify for helping me figure out how to actually test this thing.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidguttman%2Fcssify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidguttman%2Fcssify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidguttman%2Fcssify/lists"}