1.0.1 • Published 5 years ago

yewenjun-rw v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Install

# install dependencies
npm i yewenjun-rw

Usage

require package

const rw = require('yewenjun-rw');

How to use

rw.writeFile(path, data).then(data => {
    console.log('写入成功')
}).catch(err => {
    console.log('写入失败')
})

rw.readFile(path).then(data => {
    console.log('data: ', data);
}).catch(err => {
    console.log('读取失败')
})
1.0.1

5 years ago

1.0.0

5 years ago