posixy

0.0.4 • Public • Published

Posixy Extensions for Node.js

Build Status

This package will provide you with some utilities that you might already know from Node.js, but which behave a bit more reliable.

Installation

npm install posixy

API reference

posixy.link(linkTarget, linkLocation, callback)

  • linkTarget: the new link should point to that file
  • linkLocation: the location of the new link to create
  • callback: a function which will be called after creating the link. The function will be invoked with one argument: null or an error.

Create a hard link at linkLocation which points to the file at linkTarget. Unlike fs.link(), posixy.link() will fail for an already existing linkLocation.

posixy.mktemp(callback)

  • callback: a function which will be invoked after generating a temporary file name. The function will be invoked with two arguments: Beginning with null or an error followed by an object (like '{path: "…"}') or null (in case of an error).

Create the name for a future temporary file/folder.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    6
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    6
  • 0.0.3
    2
  • 0.0.2
    2
  • 0.0.1
    3

Package Sidebar

Install

npm i posixy

Weekly Downloads

6

Version

0.0.4

License

BSD 2-Clause License

Last publish

Collaborators

  • herzi