# open-with

> Open file with "open with" dialog

Latest version **1.0.2** (published 2023-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install open-with
pnpm add open-with
yarn add open-with
bun add open-with
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-08-02 |
| First published | 2023-05-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | fydne |
| Maintainers | fydne |
| Keywords | open, open with, open as, open file, open in application, execute with, execute as, execute file, node.js |

## Links

- npm: https://www.npmjs.com/package/open-with
- Repository: https://github.com/fydne/openWith-nodejs
- Homepage: https://github.com/fydne/openWith-nodejs#readme
- Issues: https://github.com/fydne/openWith-nodejs/issues
- npm.io page: https://npm.io/package/open-with

## Dependencies (1)

- [node-addon-api](https://npm.io/package/node-addon-api.md) ^7.0.0

## Recent versions

- 1.0.2 (latest) — 2023-08-02
- 1.0.1 — 2023-05-21

## README

# OpenWith
<p align="center">
<a href="javascript:void(0)">
<img src="https://readme-typing-svg.herokuapp.com?font=Jost&pause=10000&color=DB33F7&center=true&vCenter=true&width=435&lines=Open+With">
</a>
</p>
<p align="center">
Open files where you want them
</p>

# Info
Opens a dialog window with the choice of application to open the file.

!! The dialog window opens only on Windows, on linux & darwin the file opens immediately.

#### Result:
<p align="center">
<a href="javascript:void(0)">
<img src="https://github.com/fydne/openWith-nodejs/assets/121295212/e9e4353c-a8d0-4a62-879d-b8b041eb4432">
</a>
</p>

# Example code
```js
const openWith = require('open-with');

const result = openWith.open(__dirname + '/index.js');
```
```js
const openWith = require('open-with');
const path = require('path');

const result = openWith.open(path.join(__dirname, 'index.js'));
```

<p align="center">
<a href="javascript:void(0)">
<img src="https://profile-counter.glitch.me/openWith-nodejs/count.svg" width="200px" />
</a>

---
_Source: https://npm.io/package/open-with · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
