@reflink/reflink
[![npm version](https://badge.fury.io/js/%40reflink%2Freflink.svg)](https://www.npmjs.com/package/@reflink/reflink) [![Build Status](https://github.com/pnpm/reflink/workflows/CI/badge.svg)](https://github.com/pnpm/reflink/actions)
Last updated a year ago by ialdama .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @reflink/reflink 
SYNC missed versions from official npm registry.

@reflink/reflink

npm version Build Status

Copy-on-write file cloning for Node.js, powered by NAPI-RS and built upon reflink-copy. This package supports a variety of platforms, including ARM and x86 architectures.

Supported Platforms

- Linux
- MacOS
- Windows (Server 2012+ and Windows Dev Drives)

Installation

Just install @reflink/reflink using your favorite package manager:

pnpm add @reflink/reflink

Usage

The package provides both synchronous and asynchronous methods to clone files.

TypeScript Usage

First, import the package:

import { reflinkFileSync, reflinkFile } from '@reflink/reflink';

Synchronous Method

reflinkFileSync('source.txt', 'destination.txt');

Asynchronous Method

await reflinkFile('source.txt', 'destination.txt');

Testing

This package is tested using vitest. You can run the tests locally using:

pnpm install
pnpm build
pnpm test

Current Tags

  • 0.1.16-canary.bf50305                                ...           canary (a year ago)
  • 0.1.19                                ...           latest (a year ago)

19 Versions

  • 0.1.19                                ...           a year ago
  • 0.1.18                                ...           a year ago
  • 0.1.17                                ...           a year ago
  • 0.1.16-canary.bf50305                                ...           a year ago
  • 0.1.16                                ...           2 years ago
  • 0.1.15                                ...           2 years ago
  • 0.1.15-canary.fdd3c10                                ...           2 years ago
  • 0.1.14                                ...           2 years ago
  • 0.1.14-canary.c18f49b                                ...           2 years ago
  • 0.1.14-canary.298490b                                ...           2 years ago
  • 0.1.14-canary.b89d057                                ...           2 years ago
  • 0.1.13                                ...           2 years ago
  • 0.1.12                                ...           2 years ago
  • 0.1.11                                ...           3 years ago
  • 0.1.10                                ...           3 years ago
  • 0.1.9                                ...           3 years ago
  • 0.1.8                                ...           3 years ago
  • 0.1.7                                ...           3 years ago
  • 0.1.6                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 4
Last Month 4
Dependencies (0)
None
Dev Dependencies (6)

Copyright 2013 - present © cnpmjs.org | Home |