
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
cssobjectify
Advanced tools
Source transform for browserify or dcompose which converts CSS into JSON objects which can be used further by libraries like React to assign styles to UI components.
styles.css:
MyComponent {
font-size: 12px;
background-color: red;
}
myapp.js:
var React = require('react-tools/build/modules/React');
var Styles = require('./styles.css');
var MyComponent = React.createClass({
render: function() {
return (
<div style={Styles.MyComponent}>
Hello, world!
</div>
)
}
});
Use npm to install the package:
% npm install cssobjectify
And use it with browserify:
% browserify -t cssobjectify ./myapp.js
where ./myapp.js or its dependencies can reference *.css files by
require(...) calls.
FAQs
Browserify/dcompose transform to convert CSS into an JSON object
The npm package cssobjectify receives a total of 5 weekly downloads. As such, cssobjectify popularity was classified as not popular.
We found that cssobjectify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.