Class Pakaje

Service to save or load package.json config file

Hierarchy

  • Pakaje

Constructors

Methods

Constructors

Methods

  • Loads a package.json config. If no path given, loads the current project(*'s config)

    Returns

    A promise containing the loaded config

    Parameters

    • path: string = defaultPackagePath

      The saving path

    Returns Promise<PackageJson>

  • Loads a package.json config. If no path given, loads the current project(*'s config)

    Returns

    The loaded config

    Parameters

    • path: string = defaultPackagePath

      The saving path

    Returns PackageJson

  • Writes the given model in a "package.json" file

    Parameters

    • config: PackageJson

      The PackageJson model.

    • path: string = defaultPackagePath

      The saving path

    Returns Promise<void>

  • Writes the given model in a "package.json" file

    Parameters

    • config: PackageJson

      The PackageJson model.

    • path: string = defaultPackagePath

      The saving path

    Returns void

Generated using TypeDoc