
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
micro-lines
Advanced tools
This service does one thing, breaks up an HTML document into a JSON array of lines. Allowing you to count or find information in a document.
linesThis service does one thing, breaks up an HTML document into a JSON array of lines. Allowing you to count or find information in a document.
cd lists (go into this repo's folder)npm installnpm startThat's it (🎉), the local lists server is now running at localhost:3333!
Send a GET request to the service with the absolute path of the document you want to split lines on.
like:
https://servicedomain.com/https://htmlinquestion.com/file.html
example:
<script>
fetch('servicedomain.com/' + window.location.href)
.then(response => response.json())
.then(data => console.log(data.lines))
.catch(err => console.log('Something went wrong:', err));
</script>
The response will look like:
{
"lines": [
"<html>",
" <head>",
//...
]
}
If you want to search for lines by regex you can use the ?_regexp param.
like:
https://servicedomain.com/https://htmlinquestion.com/file.html?_regexp=/something/i
which returns:
{
"matches": [
{
// raw matching line
line: " something happened and I didn't know it at the time",
// index of the line as it lives inside the document
index: 50
},
{
line: " something else happened",
index: 124
},
// ... and so on for all matches
]
}
Note there is a difference between responses with ?_regexp and without it. So don't say I didn't warn you ;)
Copyright ©️ 2017 Sean Roberts, licensed under the MIT License. See LICENSE.md for more information.
FAQs
This service does one thing, breaks up an HTML document into a JSON array of lines. Allowing you to count or find information in a document.
We found that micro-lines 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
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.