
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.
github.com/thorborn-dev/go-csv-to-json
Advanced tools
Convert CSV to (nested) JSON.
package main
import (
"fmt"
"github.com/thorborn-dev/go-csv-to-json"
)
func main() {
csv, err := csv.ReadCSV("path/to/csv")
if err != nil {
panic(err)
}
json, err := csv.ToJSON()
if err != nil {
panic(err)
}
fmt.Println(json)
}
CSV Input:
name,age,registered,verified
John,25,TRUE,false
JSON Output:
[
{
"name": "John",
"age": 25,
"registered": true,
"verified": false
}
]
CSV Input:
user.firstname,user.lastname
John,Doe
JSON Output:
[
{
"user": {
"firstname": "John",
"lastname": "Doe"
}
}
]
CSV Input:
names[0],names[1]
John,Jane
JSON Output:
[
{
"names": ["John", "Jane"]
}
]
CSV Input:
users[0].firstname,users[0].lastname,users[1].firstname,users[1].lastname
John,Doe,Jane,Doe
JSON Output:
[
{
"users": [
{
"firstname": "John",
"lastname": "Doe"
},
{
"firstname": "Jane",
"lastname": "Doe"
}
]
}
]
CSV Input:
users[0][0],users[0][1]
John,Jane
Expected JSON Output:
[
{
"users": [["John", "Jane"]]
}
]
FAQs
Unknown package
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.