
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
@hadaf/syntax
Advanced tools
A library to parse and stringify Hadaf documents.
I created the hadaf syntax to make it easy to write and manipulate todo documents. My goal was to have a simple text syntax that is easy to read and write, but also easy to parse and manipulate programmatically. Here is a tour of the syntax:
When the following document is parsed:
Implement the hadaf syntax library
Write the tests
Write the documentation
It gives the following result:
[
{
"text": "Implement the hadaf syntax library"
},
{
"text": "Write the tests"
},
{
"text": "Write the documentation"
}
]
Let add some tags to the tasks:
Implement the hadaf syntax library @project:hadaf.syntax @coding
Write the tests @project:hadaf.syntax @testing @estimation:4h
Write the documentation @project:hadaf.syntax @writing @file:README.md
This will be parsed as:
[
{
"text": "Implement the hadaf syntax library",
"tags": [
{"name": "project", "type": "text", "value": "hadaf.syntax"},
{"name": "coding", "type": "boolean", "value": true}
]
},
{
"text": "Write the tests",
"tags": [
{"name": "project", "type": "text", "value": "hadaf.syntax"},
{"name": "testing", "type": "boolean", "value": true},
{"name": "estimation", "type": "duration", "value": 240}
]
},
{
"text": "Write the documentation",
"tags": [
{"name": "project", "type": "text", "value": "hadaf.syntax"},
{"name": "writing", "type": "boolean", "value": true},
{"name": "file", "type": "text", "value": "README.md"}
]
}
]
Let's add some sub-items to the first tasks:
Implement the hadaf syntax library @project:hadaf.syntax @coding
Write the `parse` function @estimation:2h
Write the `stringify` function @estimation:2h
This will be parsed as:
[
{
"text": "Implement the hadaf syntax library",
"tags": [
{"name": "project", "type": "text", "value": "hadaf.syntax"},
{"name": "coding", "type": "boolean", "value": true}
],
"items": [
{
"text": "Write the `parse` function",
"tags": [
{"name": "estimation", "type": "duration", "value": 120}
]
},
{
"text": "Write the `stringify` function",
"tags": [
{"name": "estimation", "type": "duration", "value": 120}
]
}
]
}
]
We can add a prefix to the item's text followed by a colon to make it a title, which is useful when combined with sub-items:
hadaf.syntax: @open-source
Implement the hadaf syntax library
Write the tests
Write the documentation
This will be parsed as:
[
{
"title": "hadaf.syntax",
"tags": [
{"name": "open-source", "type": "boolean", "value": true}
],
"items": [
{
"text": "Implement the hadaf syntax library"
},
{
"text": "Write the tests"
},
{
"text": "Write the documentation"
}
]
}
]
@flag
, @unwanted:false
, @wanted:true
@integer:123
, @double:123.45
@duration-minutes:15m
, @duration-hours:5h
, @duration-both:2h15m
@date:25/03/2024
, @time:14h05
, @datetime:15/07/2024_11h45
@items:foo,bar,baz
@project:hadaf.syntax
, @file:README.md
FAQs
A library to parse and stringify Hadaf documents
The npm package @hadaf/syntax receives a total of 0 weekly downloads. As such, @hadaf/syntax popularity was classified as not popular.
We found that @hadaf/syntax 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.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.