https://github.com/subchen/snack-file
file manipulation functions for node.js
https://github.com/subchen/snack-file
Last synced: 5 months ago
JSON representation
file manipulation functions for node.js
- Host: GitHub
- URL: https://github.com/subchen/snack-file
- Owner: subchen
- License: apache-2.0
- Created: 2015-06-02T03:24:56.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-02T07:24:07.000Z (about 11 years ago)
- Last Synced: 2025-06-28T21:58:02.052Z (12 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/snack-file
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/subchen/snack-file)
[](https://coveralls.io/r/subchen/snack-file)
[](https://www.npmjs.com/package/snack-file)
[](http://www.apache.org/licenses/LICENSE-2.0)
# snack-file
File manipulation functions for node.js
# Installation
```shell
npm install snack-file
```
# Example
```js
var file = require('snack-file');
console.log(file.exists('/etc/passwd'));
```
# APIs
* exists
* isFile
* isDirectory
* isSymbolicLink
* read
* readBuffer
* write
* writeBuffer
* mkdirs
* glob
* move
* copy
* delete
* stat
* size
* lastModified
* readJSON
* resolve
* path
# License
Released under the [Apache 2 License](http://www.apache.org/licenses/LICENSE-2.0).
```
Copyright 2015 Guoqiang Chen
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```