Sha256: 08be826850413e9a47e827097aa40e10cd3e333d4cf2ce1e1a04d5ba107405fa

Contents?: true

Size: 475 Bytes

Versions: 10

Compression:

Stored size: 475 Bytes

Contents

module LicenseFinder
  class NpmPackage < Package
    def initialize(spec, options={})
      super(
        spec["name"],
        spec["version"],
        options.merge(
          description: spec["description"],
          homepage: spec["homepage"],
          spec_licenses: Package.license_names_from_standard_spec(spec),
          install_path: spec["path"],
          children: spec.fetch("dependencies", {}).map { |_, d| d["name"] }
        )
      )
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
license_finder-2.1.0.rc4 lib/license_finder/package_managers/npm_package.rb
license_finder-2.1.0.rc3 lib/license_finder/package_managers/npm_package.rb
license_finder-2.1.0.rc2 lib/license_finder/package_managers/npm_package.rb
license_finder-2.1.0.rc1 lib/license_finder/package_managers/npm_package.rb
license_finder-2.0.4 lib/license_finder/package_managers/npm_package.rb
license_finder-2.0.3 lib/license_finder/package_managers/npm_package.rb
license_finder-2.0.2 lib/license_finder/package_managers/npm_package.rb
license_finder-2.0.1 lib/license_finder/package_managers/npm_package.rb
license_finder-2.0.0 lib/license_finder/package_managers/npm_package.rb
license_finder-2.0.0.rc2 lib/license_finder/package_managers/npm_package.rb