{"name":"tomas","version":"2.0.1","description":"save data to storage and read from it to speed up computing","main":"lib/tomas.js","dependencies":{"checkup":"~1.3.0","execon":"~1.2.0","ischanged":"~1.0.7","mkdirp":"~0.5.0"},"devDependencies":{},"scripts":{"lint":"eslint lib"},"repository":{"type":"git","url":"git+https://github.com/coderaiser/node-tomas.git"},"keywords":["storage","cache"],"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"http://coderaiser.github.io/"},"license":"MIT","bugs":{"url":"https://github.com/coderaiser/node-tomas/issues"},"engines":{"node":">=4"},"gitHead":"63b79e95cd54222dab5e241ca8c5a586a730dd06","homepage":"https://github.com/coderaiser/node-tomas#readme","_id":"tomas@2.0.1","_npmVersion":"5.4.2","_nodeVersion":"8.6.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"integrity":"sha512-nvUy9ttTAvHhbacKzje4CPhkhkiTWG8LmNk89T6m3oL4AT8FYJQ4l0DgJDNrjxktcs2Uz0nSQW9Ix1tpBlLa5w==","shasum":"0ab9fc199d72c6fa3fb25a174ca9c51d63f68703","tarball":"http://registry-npm.ywwl.com/tomas/download/tomas-2.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUZLDFvQg91OKEseU1Zwm6alec6cjpa2jHk3D+gxdJBgIgQy28AGMiCBUM/AnJUxI8JanJW4QCMp79mvFrey1V5sA="}],"size":2861,"noattachment":false,"key":"/tomas/-/tomas-2.0.1.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tomas-2.0.1.tgz_1507542429998_0.8829489881172776"},"directories":{},"readme":"# Tomas [![License][LicenseIMGURL]][LicenseURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![NPM version][NPMIMGURL]][NPMURL]\n\nSave data to storage and read from it to speed up computing.\n\n## Install\n\n```\nnpm i tomas --save\n```\n## How to use?\n\n```js\nconst fs = require('fs'),\nconst tomas = require('tomas'),\nconst path = './package.json',\nconst log = (error, data, str) => {\n     if (error)\n            console.error(error.message);\n        else\n            console.log(str, data);\n\n    return error;\n};\n\ntomas.check(path, (is) => {\n    if (is)\n        return tomas.read(name, (error, data) => {\n           log(error, data, 'tomas read:\\n');\n        });\n    \n    fs.readFile(name, 'utf8', (error, data) => {\n        if (!log(error))\n            tomas.write(name, data, (error) => {\n                log(error, data, 'tomas written:\\n');\n            });\n    });\n});\n```\n\n## License\n\nMIT\n\n[NPMIMGURL]:                https://img.shields.io/npm/v/tomas.svg?style=flat\n[BuildStatusIMGURL]:        https://img.shields.io/travis/coderaiser/node-tomas/master.svg?style=flat\n[DependencyStatusIMGURL]:   https://img.shields.io/david/coderaiser/node-tomas.svg?style=flat\n[LicenseIMGURL]:            https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPM_INFO_IMG]:             https://nodei.co/npm/tomas.png?stars\n[NPMURL]:                   http://npmjs.org/package/tomas\n[LicenseURL]:               https://tldrlegal.com/license/mit-license \"MIT License\"\n[BuildStatusURL]:           http://travis-ci.org/coderaiser/node-tomas  \"Build Status\"\n[DependencyStatusURL]:      https://david-dm.org/coderaiser/node-tomas \"Dependency Status\"\n\n","publish_time":1507542431050,"_cnpm_publish_time":1507542431050,"dist-tags":{"latest":"2.0.3"}}