1.4.24 • Published 9h agoCLI
xshell
Licence
—
Version
1.4.24
Deps
34
Size
8.6 MB
Vulns
0
Weekly
0
xshell
xshell
xshell is a shell designed to provide a brand new human-computer interaction experience.

Getting Started
Install the latest version of NodeJS https://nodejs.org/en/
Enter a project directory that has a package.json file.
cd example/
or create a new project
mkdir example/
cd example/
npm init -y
- Install the npm package
xshelland you will get axshellcommand
npm install xshell
- Run
xshellto 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
- Install the VSCode extenstion
shenhongfei.xshell
code --install-extension shenhongfei.xshell
- or: search
xshellin vscode extension sidebar and click install - or: goto https://marketplace.visualstudio.com/items?itemName=ShenHongFei.xshell
- 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.