Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
55ac57a122 | |||
7da57901dd | |||
12500a0900 | |||
36371d9469 | |||
4e9874a639 | |||
e55e30bdb3 |
1
index.js
1
index.js
@ -1,6 +1,5 @@
|
||||
/// <reference path="typings/tsd.d.ts" />
|
||||
var path = require("path");
|
||||
var pr = require("pushrocks");
|
||||
var fs = require("fs");
|
||||
var smartfile = {
|
||||
//read File to string
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "smartfile",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.6",
|
||||
"description": "offers smart ways to work with files in nodejs",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
@ -24,10 +24,11 @@
|
||||
},
|
||||
"homepage": "https://github.com/pushrocks/smartfile",
|
||||
"dependencies": {
|
||||
"pushrocks": "^1.0.18"
|
||||
"beautylog": "^1.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp": "3.9.0",
|
||||
"gulp-typescript": "2.9.2"
|
||||
"gulp-typescript": "2.9.2",
|
||||
"pushrocks": "^1.0.19"
|
||||
}
|
||||
}
|
||||
|
4
test.js
4
test.js
@ -1,2 +1,4 @@
|
||||
/// <reference path="typings/tsd.d.ts" />
|
||||
var smartfile = require("./index.js");
|
||||
console.log(smartfile.readFileToString("./test/mytest.txt"));
|
||||
var beautylog = require("beautylog")("os");
|
||||
beautylog.info(smartfile.readFileToString("./test/mytest.txt"));
|
||||
|
@ -1 +1 @@
|
||||
This is some test text. If this is displayed when running "npm test", then the test has succeeded.
|
||||
This is some test text stored in ./test/mytest.txt -> If this is displayed when running "npm test", then the test has succeeded.
|
@ -1,6 +1,5 @@
|
||||
/// <reference path="typings/tsd.d.ts" />
|
||||
var path = require("path");
|
||||
var pr = require("pushrocks");
|
||||
var fs = require("fs");
|
||||
|
||||
var smartfile:any = {
|
||||
|
@ -1,2 +1,4 @@
|
||||
/// <reference path="typings/tsd.d.ts" />
|
||||
var smartfile = require("./index.js");
|
||||
console.log(smartfile.readFileToString("./test/mytest.txt"));
|
||||
var beautylog = require("beautylog")("os");
|
||||
beautylog.info(smartfile.readFileToString("./test/mytest.txt"));
|
Reference in New Issue
Block a user