UNPKG

@nx/devkit

Version:

The Nx Devkit is used to customize Nx for different technologies and use cases. It contains many utility functions for reading and writing files, updating configuration, working with Abstract Syntax Trees(ASTs), and more. Learn more about [extending Nx by

14 lines (13 loc) 335 B
/** * Calculates an offset from the root of the workspace, which is useful for * constructing relative URLs. * * Examples: * * ```typescript * offsetFromRoot("apps/mydir/myapp/") // returns "../../../" * ``` * * @param fullPathToDir - directory path */ export declare function offsetFromRoot(fullPathToDir: string): string;