
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
ocss-parser
Advanced tools
This is the repository for the syntax parser and stringifier of the OCSS preprocessor. You can try it out in the live editor.
display: block
color: red
child // comment
color: blue
background: transparent
:hover
color: red
subchild
font-size: 12px
// another comment
=big
font-size: 200%
child
color: red
{
"type": "object",
"name": "test",
"declarations": [
{
"position": {
"line": 1
},
"type": "declaration",
"property": "display",
"value": "block"
},
{
"position": {
"line": 2
},
"type": "declaration",
"property": "color",
"value": "red"
}
],
"elements": [
{
"position": {
"line": 4
},
"type": "element",
"name": "child",
"declarations": [
{
"position": {
"line": 5
},
"type": "declaration",
"property": "color",
"value": "blue"
},
{
"position": {
"line": 6
},
"type": "declaration",
"property": "background",
"value": "transparent"
}
],
"pseudoelements": [
{
"position": {
"line": 8
},
"type": "pseudoelement",
"name": "hover",
"declarations": [
{
"position": {
"line": 9
},
"type": "declaration",
"property": "color",
"value": "red"
}
]
}
],
"elements": [
{
"position": {
"line": 11
},
"type": "element",
"name": "subchild",
"declarations": [
{
"position": {
"line": 12
},
"type": "declaration",
"property": "font-size",
"value": "12px"
}
]
}
]
}
],
"modifiers": [
{
"position": {
"line": 14
},
"type": "modifier",
"name": "big",
"declarations": [
{
"position": {
"line": 15
},
"type": "declaration",
"property": "font-size",
"value": "200%"
}
],
"elements": [
{
"position": {
"line": 17
},
"type": "element",
"name": "child",
"declarations": [
{
"position": {
"line": 18
},
"type": "declaration",
"property": "color",
"value": "red"
}
]
}
]
}
]
}
.test {
display: block;
color: red;
}
.test-child {
color: blue;
background: transparent;
}
.test-child-subchild {
font-size: 12px;
}
.test-child:hover {
color: red;
}
.test--big {
font-size: 200%;
}
.test--big .test-child {
color: red;
}
Install dependencies with npm install once. Afterwards run npm test every time you want to start the tests.
FAQs
syntax parser for the OCSS preprocessor
We found that ocss-parser 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.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.