crash.software
Projects
Pull Requests
Issues
Builds
syft
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
syft
Files
🤬
Sign In
42fa9e49
ROOT
/
syft
/
pkg
/
cataloger
/
javascript
/
parse_package_json.go
Search
History
220 lines
|
ISO-8859-1
|
5 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
_
:
generic.Parser
packageJSON
Version
:
string
Latest
:
[]string
Author
:
author
License
:
json.RawMessage
Licenses
:
json.RawMessage
Name
:
string
Homepage
:
string
Description
:
string
Dependencies
:
map[string]string
Repository
:
repository
Private
:
bool
licensesFromJSON
()
:
([]string, error)
hasNameAndVersionValues
()
:
bool
author
Name
:
string
Email
:
string
URL
:
string
repository
Type
:
string
URL
:
string
authorPattern
parsePackageJSON
(_ source.FileResolver, _ *generic.Environment, reader source.LocationReadCloser)
:
([]pkg.Package, []artifact.Relationship, error)
npmPackageLicense
Type
:
string
URL
:
string
licenseFromJSON
(b []byte)
:
(string, error)
licensesFromJSON
(b []byte)
:
([]npmPackageLicense, error)
filepathSeparator
pathContainsNodeModulesDirectory
(p string)
:
bool
*author
UnmarshalJSON
(b []byte)
:
error
AuthorString
()
:
string
*repository
UnmarshalJSON
(b []byte)
:
error
All occurrences
Please wait...
Page is in error, reload to recover