Socket
Book a DemoInstallSign in
Socket

obj-to-css

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

obj-to-css

Convert JS object to CSS declarations

unpublished
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
169
-36.94%
Maintainers
1
Weekly downloads
 
Created
Source

obj-to-css

Convert JS object to CSS declarations

Package version Downloads Standard Travis Build Standard Readme GitHub version Dependency CI License PRs Donate


Built with ❤︎ by Tiaan and contributors

Table of Contents

Table of Contents
  • About
  • Install
  • Usage
  • CLI
  • Contribute
  • License
  • Install

    $ npm install --save obj-to-css
    # OR
    $ yarn add obj-to-css
    

    Usage

    
    const ToCss = require('obj-to-css')
    
    const obj = {
      '.hello': {
        color: 'red'
      },
      '.foo': {
        background: 'pink'
      }
    }
    
    console.log(toCSS(obj)) // .hello{color:red}.foo{background:pink}
    
    

    CLI

    $ obj-to-css foo.json
    # .hello{color:red}.foo{background:pink}
    

    Contribute

    Contributions are welcome. Please open up an issue or create PR if you would like to help out.

    Note: If editing the README, please conform to the standard-readme specification.

    License

    Licensed under the MIT License.

    Keywords

    css

    FAQs

    Package last updated on 24 Nov 2025

    Did you know?

    Socket

    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.

    Install

    Related posts