Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
/ xopen Public archive
forked from andrewimm/xopen

Open a file with the default application

Notifications You must be signed in to change notification settings

418sec/xopen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

xopen - Open a file with the default application

xopen provides a dead-simple Promise API for opening files from Node on Windows, macOS, and Linux:

xopen(filepath)

filepath is a path to the file you wish to open. When you call xopen(), it returns a Promise that is resolved with the contents of stdout if the application successfully opens, and is rejected with an error if the application fails to open.

It's that easy.

About

Open a file with the default application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%