# io-info

> Nodejs file api just like FileInfo & DirectoryInfo in C#

Latest version **1.0.7** (published 2017-03-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install io-info
pnpm add io-info
yarn add io-info
bun add io-info
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2017-03-21 |
| First published | 2017-03-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | wangshaoxing |
| Maintainers | wshxbqq |
| Keywords | FileInfo, DirectoryInfo |

## Links

- npm: https://www.npmjs.com/package/io-info
- Repository: https://github.com/wshxbqq/node-io-info
- Homepage: https://github.com/wshxbqq/node-io-info#readme
- Issues: https://github.com/wshxbqq/node-io-info/issues
- npm.io page: https://npm.io/package/io-info

## Dependencies (2)

- [shelljs](https://npm.io/package/shelljs.md) ^0.7.7
- [@types/shelljs](https://npm.io/package/@types/shelljs.md) ^0.7.0

## Recent versions

- 1.0.7 (latest) — 2017-03-21
- 1.0.6 — 2017-03-21
- 1.0.5 — 2017-03-21
- 1.0.4 — 2017-03-21
- 1.0.2 — 2017-03-21
- 1.0.1 — 2017-03-21
- 1.0.0 — 2017-03-21

## README

# node-io-info

node file api ,  just like FileInfo &amp; DirectoryInfo  Class in C# 

typescript enabled

__install:__

```
npm install io-info
```

API:

__FileInfo__ 

```javascript
const io = require("io-info")
let f1 = new io.FileInfo("simple/1.txt"); //FileInfo in c#.net
f1.create();
f1.attributes;
f1.exists;
f1.copyTo("dir3");
f1.moveTo("dir2");
f1.length;
...
io.FileInfo.writeAllText(f1.fullName,"some test");
io.FileInfo.readAllText(f1.fullName)
...

```

__DirectoryInfo__

```javascript
const io = require("io-info")
let d1 = new io.DirectoryInfo("simple");//DirectoryInfo in c#.net
d1.copyTo("simple1");
d1.size;
d1.copyTo("dir4");
d1.delete();
d1.exists;
...
...

```

---
_Source: https://npm.io/package/io-info · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
