Socket
Socket
Sign inDemoInstall

inline-style-parser

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inline-style-parser

An inline style parser.


Version published
Weekly downloads
6.8M
increased by1.29%
Maintainers
1
Weekly downloads
 
Created

What is inline-style-parser?

The inline-style-parser npm package is designed to parse inline CSS styles into a JavaScript object. This can be particularly useful for applications that need to manipulate or analyze styles dynamically, such as in web development tools, CSS-in-JS libraries, or any application that needs to convert CSS style strings into a more manageable format.

What are inline-style-parser's main functionalities?

Parsing inline styles

This feature allows you to convert a string of inline CSS styles into a JavaScript object. Each style property becomes a key in the object, and the corresponding style value is the value for that key. This is useful for manipulating styles in JavaScript.

const parse = require('inline-style-parser');
const styleString = 'color: red; font-size: 14px;';
const styleObject = parse(styleString);
console.log(styleObject);

Other packages similar to inline-style-parser

Keywords

FAQs

Package last updated on 20 Jun 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc