@types/format-io
TypeScript icon, indicating that this package has built-in type declarations

0.9.3 • Public • Published

Installation

npm install --save @types/format-io

Summary

This package contains type definitions for format-io (https://github.com/coderaiser/format-io).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/format-io.

index.d.ts

/**
 * Appends a '/' to the end of the path unless it exists.
 * @param path A path.
 * @returns The path with a '/' appended to it.
 */
export function addSlashToEnd(path: string): string;

/**
 * Returns a short string representing the size of bytes in unit symbols up to petabytes.
 * @param size Size in bytes.
 * @returns A string representing the size in the matching unit symbol.
 */
export function size(size: number): string;

/**
 * Contains functions to format permissions.
 */
export namespace permissions {
    /**
     * Converts Unix-like permissions from numeric to symbolic notation.
     * @param perm A string of Unix-like permission in numeric notation.
     * @returns A representation of the permissions in symbolic notation.
     */
    function symbolic(perm: string): string;

    /**
     * Converts Unix-like permissions from symbolic to numeric notation.
     * @param perm A string of Unix-like permission in symbolic notation.
     * @returns A representation of the permissions in numeric notation.
     */
    function numeric(perm: string): string;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Amit Beckenstein.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/format-io

Weekly Downloads

2

Version

0.9.3

License

MIT

Unpacked Size

4.71 kB

Total Files

5

Last publish

Collaborators

  • types