https://github.com/hellojukay/yarn-lock
parse yarn lock file
https://github.com/hellojukay/yarn-lock
Last synced: about 1 year ago
JSON representation
parse yarn lock file
- Host: GitHub
- URL: https://github.com/hellojukay/yarn-lock
- Owner: hellojukay
- License: bsd-3-clause
- Created: 2022-03-09T12:15:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-14T08:57:12.000Z (over 4 years ago)
- Last Synced: 2025-01-29T08:33:42.023Z (over 1 year ago)
- Language: Go
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yarn-lock
parse yarn lock file
```bash
go get github.com/hellojukay/yarn-lock
```
### example
```golang
lock, err := lock.FromFile("./yarn.lock")
if err != nil {
panic(err)
}
components := lock.Component()
for _, c := range components {
fmt.Printf("%20s%30s\n", c.Name, c.Version)
}
```