nodejs

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package nodejs provides Node.js-specific functionality for librarian.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultOutput

func DefaultOutput(name, defaultOutput string) string

DefaultOutput returns the output path for a library.

func DerivePackageName

func DerivePackageName(library *config.Library) string

DerivePackageName returns the npm package name for a library. It uses nodejs.package_name if set, otherwise derives it by splitting the library name on the second dash (e.g. "google-cloud-batch" → "@google-cloud/batch").

func Generate

func Generate(ctx context.Context, cfg *config.Config, library *config.Library, srcs *sources.Sources) error

Generate generates a Node.js client library.

func Install added in v0.10.0

func Install(ctx context.Context) error

Install installs Node.js tool dependencies.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL