
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Modern css utils.
This script will not be transpiled and it is only thought to be part of your build chain.
import css from 'bianco.css'
Set any css property on a single node or a list of DOM nodes.
Parameters
els
(HTMLElement | NodeList | Array) DOM node/s to parsename
(String | Object) either the name of the property to set
or a list of properties as object key - valuevalue
String the new value of the property (optional)Examples
import { set } from 'bianco.css'
const img = document.createElement('img')
set(img, 'width', 100)
// or also
set(img, {
width: 300,
height: 300
})
Returns (HTMLElement | NodeList | Array) the original array of elements passed to this function.
Get any property from a single node or a list of DOM nodes.
Parameters
els
(HTMLElement | NodeList | Array) DOM node/s to parsenames
(String | Array) name or list of properties to getExamples
import { get } from 'bianco.css'
const img = document.createElement('img')
get(img, 'width') // => '200'
// or also
get(img, ['width', 'height']) // => {width: '200', height: '300'}
// or also
get([img1, img2], ['width', 'height']) // => [{width: '200', height: '300'}, {width: '500', height: '200'}]
Returns (Array | String) list of the properties found.
Remove any css property from a single node or a list of DOM nodes.
Parameters
els
(HTMLElement | NodeList | Array) DOM node/s to parsenames
(String | Array) name or list of properties to removeExamples
import { remove } from 'bianco.css'
remove(img, 'width') // remove the width property
// or also
remove(img, ['width', 'height']) // remove the width and the height property
// or also
remove([img1, img2], ['width', 'height']) // remove the width and the height property from both images
Returns (HTMLElement | NodeList | Array) the original array of elements passed to this function.
FAQs
[![Build Status][ci-image]][ci-url] [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url]
The npm package bianco.css receives a total of 47 weekly downloads. As such, bianco.css popularity was classified as not popular.
We found that bianco.css demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.