# nanoapp/nstd

------


## nanoapp/nstd/shell

**Exec**
```javascript
import { Exec } from '@nanoapp/nstd'
Exec("id --user --name", (msg) => {
      console.log("stdout output: ", msg)
}, (err) => { console.log("stderr output: ", err) })
```

`Exec` return a `abnormal Promise`, it keep the default promise method, like
`catch`, `then`, `finally` . Except has the `kill` method. This service will
canceled when `kill` execute.


## nanoapp/nstd/dbus



## nanoapp/nstd/socket



## nanoapp/nstd/filesystem

- 参考[afero][https://github.com/spf13/afero]的抽象接口。



## nanoapp/nstd/os

- 参考[golang os][https://golang.org/pkg/os/]的接口。
