JSPM

open-file-text-editor

0.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 4
    • Score
      100M100P100Q15074F
    • License ISC

    Open file in text-editor windows, linux, darwin

    Package Exports

    • open-file-text-editor

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (open-file-text-editor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    open-file-text-editor

    Will open files in text editor as following:

    • linux: Use xdg-open to open default editor [tested on ubuntu]
    • darwin: Use open to use default editor
    • win32: Use notepad. Later I hope have some time to look at using default text-editor

    Installation

    npm install open-file-text-editor

    Usage

    'use strict';

    const openText = require('open-file-text-editor'); openText(${filename}); # => returns Promise