CSS box-shadow parser and stringifier
npm install css-box-shadowCSS box shadow parser and stringifier
``sh`
npm i css-box-shadow
`js
const { parse, stringify } = require('css-box-shadow')
// parse a CSS string value into an array of objects
const parsed = parse('0 0 0 32px tomato')
// [{ inset: false,
// offsetX: 0,
// offsetY: 0,
// blurRadius: 0,
// spreadRadius: 32,
// color: 'tomato' }]
// convert an array of objects into a box-shadow string value
const value = stringify(parsed)
// '0 0 0 32px tomato'
``
MIT License