Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
49aba4c85f | |||
37d81fa4c6 | |||
0256166c2f | |||
bef2bd6b3a | |||
759e1655da | |||
d732d1ba97 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,7 +1,7 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
coverage/
|
coverage/
|
||||||
pages/
|
pages/
|
||||||
|
public/
|
||||||
|
|
||||||
test/temp/
|
test/temp/
|
||||||
|
|
||||||
|
29
README.md
29
README.md
@ -1,13 +1,36 @@
|
|||||||
# smartfile
|
# smartfile
|
||||||
make files easily accessible for processing in javascript.
|
make files easily accessible for processing in javascript.
|
||||||
|
|
||||||
## Status
|
## Availabililty
|
||||||
|
[](https://www.npmjs.com/package/smartfile)
|
||||||
|
[](https://gitlab.com/pushrocks/smartfile)
|
||||||
|
[](https://github.com/pushrocks/smartfile)
|
||||||
|
[](https://pushrocks.gitlab.io/smartfile/)
|
||||||
|
|
||||||
|
## Status for master
|
||||||
[](https://gitlab.com/pushrocks/smartfile/commits/master)
|
[](https://gitlab.com/pushrocks/smartfile/commits/master)
|
||||||
|
[](https://gitlab.com/pushrocks/smartfile/commits/master)
|
||||||
[](https://david-dm.org/pushrocks/smartfile)
|
[](https://david-dm.org/pushrocks/smartfile)
|
||||||
[](https://www.bithound.io/github/pushrocks/smartfile/master/dependencies/npm)
|
[](https://www.bithound.io/github/pushrocks/smartfile/master/dependencies/npm)
|
||||||
[](https://www.bithound.io/github/pushrocks/smartfile)
|
[](https://www.bithound.io/github/pushrocks/smartfile)
|
||||||
[](https://codecov.io/github/pushrocks/smartfile?branch=master)
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||||
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||||
|
[](http://standardjs.com/)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
smartfile is an approach of being one tool to handle files in diverse environments.
|
smartfile is an approach of being one tool to handle files in diverse environments.
|
||||||
It can fetch files from remote locations, work with local disks and do pure memory operations.
|
|
||||||
|
### Smartfile Sections
|
||||||
|
smartfile thinks in sections:
|
||||||
|
|
||||||
|
section | description
|
||||||
|
--- | ---
|
||||||
|
fs | (object) gets data from fs to somewhere
|
||||||
|
memory | gets data from memory to somewhere
|
||||||
|
remote | gets data from remote locations to somewhere
|
||||||
|
interpreter | (object) handles yaml and json
|
||||||
|
smartfile | (class) a virtual representation of a file, alternative to vinyl file format
|
||||||
|
|
||||||
|
For more information read the docs
|
||||||
|
|
||||||
|
[](https://push.rocks)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "smartfile",
|
"name": "smartfile",
|
||||||
"version": "4.0.16",
|
"version": "4.0.19",
|
||||||
"description": "offers smart ways to work with files in nodejs",
|
"description": "offers smart ways to work with files in nodejs",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
|
File diff suppressed because one or more lines are too long
@ -198,6 +198,7 @@ describe("smartfile".yellow,function(){
|
|||||||
describe(".remote",function(){
|
describe(".remote",function(){
|
||||||
describe("toGulpStreamSync()",function(){
|
describe("toGulpStreamSync()",function(){
|
||||||
it("should produce a gulp stream",function(done){
|
it("should produce a gulp stream",function(done){
|
||||||
|
this.timeout(5000)
|
||||||
smartfile.remote.toGulpStreamSync("mytest.txt","https://raw.githubusercontent.com/pushrocks/smartfile/master/test/")
|
smartfile.remote.toGulpStreamSync("mytest.txt","https://raw.githubusercontent.com/pushrocks/smartfile/master/test/")
|
||||||
.pipe(smartfile.fs.toGulpDestSync("./test/temp/"))
|
.pipe(smartfile.fs.toGulpDestSync("./test/temp/"))
|
||||||
.pipe(gFunction(done,"atEnd"));
|
.pipe(gFunction(done,"atEnd"));
|
||||||
|
Reference in New Issue
Block a user