Socket
Book a DemoInstallSign in
Socket

@nanoapp/nstd

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nanoapp/nstd

the standard library of nanoapp.

npmnpm
Version
0.1.14
Version published
Weekly downloads
0
-100%
Maintainers
3
Weekly downloads
 
Created
Source

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

  • 参考afero的抽象接口。

nanoapp/nstd/os

开发

git clone git@gitee.com:linakesi/nanoapp-std.git
cd nanoapp-std
npm install
npm run test

Keywords

nanoapp

FAQs

Package last updated on 26 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts