Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@reflink/reflink
Advanced tools
[![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)
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.
- Linux
- MacOS
- Windows (Server 2012+ and Windows Dev Drives)
Just install @reflink/reflink
using your favorite package manager:
pnpm add @reflink/reflink
The package provides both synchronous and asynchronous methods to clone files.
First, import the package:
import { reflinkFileSync, reflinkFile } from '@reflink/reflink';
reflinkFileSync('source.txt', 'destination.txt');
await reflinkFile('source.txt', 'destination.txt');
This package is tested using vitest
. You can run the tests locally using:
pnpm install
pnpm build
pnpm test
FAQs
[![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)
The npm package @reflink/reflink receives a total of 1,382 weekly downloads. As such, @reflink/reflink popularity was classified as popular.
We found that @reflink/reflink demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.