JSPM

xshell

1.0.43
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 268
  • Score
    100M100P100Q116305F

xshell is a shell designed to provide a brand new human-computer interaction experience.

Package Exports

  • xshell
  • xshell/chalk.browser
  • xshell/chalk.browser.js
  • xshell/index.js
  • xshell/net.browser.js
  • xshell/net.js
  • xshell/prototype.browser
  • xshell/prototype.browser.js
  • xshell/utils.browser
  • xshell/utils.browser.js
  • xshell/utils.js

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 (xshell) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

xshell

xshell

xshell

npm version npm downloads vscode extension version vscode extension installs

xshell is a shell designed to provide a brand new human-computer interaction experience.

REPL.png

Getting Started

  1. Install the latest version of NodeJS https://nodejs.org/en/

  2. Enter a project directory that has a package.json file.

cd example/

or create a new project

mkdir example/
cd example/
npm init -y
  1. Install the npm package xshell and you will get a xshell command
npm install xshell
  1. Run xshell to start the shell at http://127.0.0.1:8421
npx xshell

# or call xshell directly
node ./node_modules/.bin/xshell

# or add `"xshell": "xshell",` in package.json scripts field, and
npm run xshell
  1. Install the VSCode extenstion shenhongfei.xshell
code --install-extension shenhongfei.xshell
  1. Open or create a .ts file and import necessary type definations, then enjoy!
import { request } from 'xshell'

// start REPL
await request('https://shenhongfei.com')

// select the above line and press Ctrl + Enter, then you can inspect the result in xshell.

Development

Change "main" field in package.json to extension.js before release extension.