@types/write-file-atomic

  • Version 4.0.3
  • Published
  • 4.96 kB
  • 1 dependency
  • MIT license

Install

npm i @types/write-file-atomic
yarn add @types/write-file-atomic
pnpm add @types/write-file-atomic

Overview

TypeScript definitions for write-file-atomic

Index

Functions

function sync

sync: (
filename: string,
data: string | Buffer,
options?: Options | BufferEncoding
) => void;

    function writeFile

    writeFile: typeof writeFile;

      Interfaces

      interface Options

      interface Options {}

        property chown

        chown?:
        | {
        uid: number;
        gid: number;
        }
        | undefined;

          property encoding

          encoding?: BufferEncoding | undefined;
          • 'utf8'

          property fsync

          fsync?: boolean | undefined;

            property mode

            mode?: number | undefined;

              property tmpfileCreated

              tmpfileCreated?: ((tmpfile: string) => void) | undefined;

                Package Files (1)

                Dependencies (1)

                Dev Dependencies (0)

                No dev dependencies.

                Peer Dependencies (0)

                No peer dependencies.

                Badge

                To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/write-file-atomic.

                • Markdown
                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/write-file-atomic)
                • HTML
                  <a href="https://www.jsdocs.io/package/@types/write-file-atomic"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>