Package io.github.kelvindev15.npm
Class NpmPackageFile
-
- All Implemented Interfaces:
public final class NpmPackageFileRepresents a package.json file. name is the name of the package. version is the version of the package. author is the author of the package. description is the description of the package. main is the main file of the package. license is the license of the package. scripts are the scripts of the package. dependencies are the dependencies of the package. devDependencies are the devDependencies of the package. repository is the repository of the package. homepage is the homepage of the package. type is the type of the package.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Stringversionprivate final Stringauthorprivate final Stringdescriptionprivate final Stringmainprivate final Stringlicenseprivate final List<NpmScript>scriptsprivate final List<NpmDependency>dependenciesprivate final List<NpmDependency>devDependenciesprivate final NpmRepositoryrepositoryprivate final Stringhomepageprivate final Stringtype
-
Constructor Summary
Constructors Constructor Description NpmPackageFile(String name, String version, String author, String description, String main, String license, List<NpmScript> scripts, List<NpmDependency> dependencies, List<NpmDependency> devDependencies, NpmRepository repository, String homepage, String type)
-
Method Summary
Modifier and Type Method Description final StringgetName()final StringgetVersion()final StringgetAuthor()final StringgetDescription()final StringgetMain()final StringgetLicense()final List<NpmScript>getScripts()final List<NpmDependency>getDependencies()final List<NpmDependency>getDevDependencies()final NpmRepositorygetRepository()final StringgetHomepage()final StringgetType()final Map<String, Object>toMap()Converts the package file to a map. -
-
Constructor Detail
-
NpmPackageFile
NpmPackageFile(String name, String version, String author, String description, String main, String license, List<NpmScript> scripts, List<NpmDependency> dependencies, List<NpmDependency> devDependencies, NpmRepository repository, String homepage, String type)
-
-
Method Detail
-
getVersion
final String getVersion()
-
getDescription
final String getDescription()
-
getLicense
final String getLicense()
-
getScripts
final List<NpmScript> getScripts()
-
getDependencies
final List<NpmDependency> getDependencies()
-
getDevDependencies
final List<NpmDependency> getDevDependencies()
-
getRepository
final NpmRepository getRepository()
-
getHomepage
final String getHomepage()
-
-
-
-