copy-as-javascript Made for Pulsar!

Converts TypeScript into plain JavaScript and puts it in the clipboard.

idleberg

0

0

Bug Reports

0.1.0

MIT

GitHub

copy-as-javascript

Converts TypeScript into plain JavaScript and puts it in the clipboard.

License Release Downloads CI

Installation

Package Manager

Install copy-as-javascript from the editor's Package Manager or the command-line equivalent:

$ ppm install copy-as-javascript || apm install copy-as-javascript

Using Git

Change to your packages directory:

Windows

# Powershell
$ cd $Env:USERPROFILE\.atom\packages
:: Command Prompt
$ cd %USERPROFILE%\.atom\packages

Linux & macOS

$ cd ~/.atom/packages/

Clone the repository as copy-as-javascript:

$ git clone https://github.com/idleberg/atom-copy-as-javascript copy-as-javascript

Install dependencies:

$ cd copy-as-javascript
$ ppm install || apm install

Build source:

$ ppm run build || apm run build

Usage

The package exposes a single command Copy As Javascript: Copy As Javascript that will copy the currently selected TypeScript code and converts it to plain JavaScript. Useful when testing code in the browser console or NodeJS REPL.

Kudos

This plugin is inspired and in part based on this VSCode extension.

License

This work is licensed under the MIT License.