Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hexojs/hexo-fs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 744e439fac86e0e68e71be9c3506b72b1625dea0
Choose a base ref
...
head repository: hexojs/hexo-fs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 780a5a9ab504628bd4be7a6ff7d099a70d4499f2
Choose a head ref
Loading
Showing with 895 additions and 1,177 deletions.
  1. +1 −1 .gitignore
  2. +0 −8 .npmignore
  3. +3 −2 .travis.yml
  4. +8 −3 README.md
  5. +3 −2 appveyor.yml
  6. +159 −216 lib/fs.js
  7. +18 −13 package.json
  8. +703 −932 test/index.js
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -3,5 +3,5 @@ node_modules/
tmp/
*.log
.idea/
coverage/
.nyc_output/
package-lock.json
8 changes: 0 additions & 8 deletions .npmignore

This file was deleted.

5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -8,7 +8,8 @@ cache:
- node_modules

node_js:
- "6"
- "8"
- "10"
- "node"

script:
@@ -17,4 +18,4 @@ script:

after_script:
- npm install coveralls
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- nyc report --reporter=text-lcov | coveralls
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# hexo-fs

[![Build Status](https://travis-ci.org/hexojs/hexo-fs.svg?branch=master)](https://travis-ci.org/hexojs/hexo-fs) [![NPM version](https://badge.fury.io/js/hexo-fs.svg)](http://badge.fury.io/js/hexo-fs) [![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-fs.svg)](https://coveralls.io/r/hexojs/hexo-fs?branch=master) [![Build status](https://ci.appveyor.com/api/projects/status/wift3c57kei3ylq4/branch/master?svg=true)](https://ci.appveyor.com/project/tommy351/hexo-fs/branch/master) [![dependencies Status](https://david-dm.org/hexojs/hexo-fs/status.svg)](https://david-dm.org/hexojs/hexo-fs) [![devDependencies Status](https://david-dm.org/hexojs/hexo-fs/dev-status.svg)](https://david-dm.org/hexojs/hexo-fs?type=dev)
[![Build Status](https://travis-ci.org/hexojs/hexo-fs.svg?branch=master)](https://travis-ci.org/hexojs/hexo-fs)
[![NPM version](https://badge.fury.io/js/hexo-fs.svg)](https://www.npmjs.com/package/hexo-fs)
[![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-fs.svg)](https://coveralls.io/r/hexojs/hexo-fs?branch=master)
[![Build status](https://ci.appveyor.com/api/projects/status/github/hexojs/hexo-fs?svg=true)](https://ci.appveyor.com/project/tommy351/hexo-fs/branch/master)
[![dependencies Status](https://david-dm.org/hexojs/hexo-fs/status.svg)](https://david-dm.org/hexojs/hexo-fs)
[![devDependencies Status](https://david-dm.org/hexojs/hexo-fs/dev-status.svg)](https://david-dm.org/hexojs/hexo-fs?type=dev)

File system module for [Hexo].

@@ -19,7 +24,7 @@ $ npm install hexo-fs --save
## Usage

``` js
var fs = require('hexo-fs');
const fs = require('hexo-fs');
```

> Some methods in the original fs module are not listed below, but they're available in hexo-fs.
@@ -157,5 +162,5 @@ Synchronous version of `fs.ensureWriteStream`.
MIT

[graceful-fs]: https://github.com/isaacs/node-graceful-fs
[Hexo]: http://hexo.io/
[Hexo]: https://hexo.io/
[chokidar]: https://github.com/paulmillr/chokidar
5 changes: 3 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -5,8 +5,9 @@ init:
# Test against these versions of Node.js.
environment:
matrix:
- nodejs_version: "LTS"
- nodejs_version: "Stable"
- nodejs_version: "8"
- nodejs_version: "10"
- nodejs_version: "12"

matrix:
fast_finish: true
Loading