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

3.0.3 • Public • Published

Installation

npm install --save @types/lnfs

Summary

This package contains type definitions for lnfs (https://github.com/kevva/lnfs).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lnfs.

index.d.ts

/// <reference types="node" />
import * as fs from "fs";

export = lnfs;

/**
 * Safely force create symlinks.
 *
 * @param src Path to source file.
 * @param dest Path to destination.
 * @param type Default: `file`. Is only available on Windows (ignored on other platforms).
 *
 * @example
 * import lnfs = require('lnfs');
 *
 * lnfs('foo.txt', 'bar.txt').then(() => {
 *   console.log('Symlink successfully created!');
 * });
 */
declare function lnfs(src: string, dest: string, type?: fs.symlink.Type): Promise<string>;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:38 GMT
  • Dependencies: @types/node

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/lnfs

Weekly Downloads

3

Version

3.0.3

License

MIT

Unpacked Size

3.63 kB

Total Files

5

Last publish

Collaborators

  • types