2015-11-03 19:22:16 +00:00
|
|
|
/// <reference path="typings/tsd.d.ts" />
|
2015-11-03 19:14:41 +00:00
|
|
|
var smartfile = require("./index.js");
|
2015-11-03 19:29:19 +00:00
|
|
|
var beautylog = require("beautylog")("os");
|
2015-11-24 17:52:24 +00:00
|
|
|
beautylog.info(smartfile.readFileToString("./test/mytest.txt"));
|
|
|
|
console.log(smartfile.readFileToObject("./test/mytest.yaml"));
|
|
|
|
console.log(smartfile.readFileToObject("./test/mytest.json"));
|
|
|
|
//var thisIsAnError = smartfile.readFileToObject("./test/mytestDoesNotExist.json");
|