nanoapp/nstd
example
online example
nanoapp/nstd/subprocess
import { System, Start, Run } from '@nanoapp/nstd/subprocess'
System("uname -a").then(console.log)
see also test code
and xterm.vue
nanoapp/nstd/socket
import { ConnData, NSocketServe } from '@nanoapp/nstd/socket'
let lis = new NSocketServe("tcp", "127.0.0.1:8888", (peer) => {
let addr = peer.getAddress()
})
lis.serve((data, control) => {
let req = new ConnData()
req.setData(encoder.encode(`${header}\r\n\r\n${text}`))
control.write(req)
control.cancel()
})
nanoapp/nstd/filesystem
nanoapp/nstd/os
开发
git clone git@gitee.com:linakesi/nanoapp-std.git
cd nanoapp-std
npm install
npm run test