{"name":"tomas","version":"1.0.0","description":"save data to storage and read from it to speed up computing","main":"lib/tomas.js","dependencies":{"checkup":"~1.0.2","execon":"~1.0.1","ischanged":"~1.0.7","mkdirp":"~0.5.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/coderaiser/node-tomas"},"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":">=0.8"},"gitHead":"8f9bbcef26eff88867b814bbd4185afddd55ce6a","_id":"tomas@1.0.0","_shasum":"73ab12fc482a52e529e39224df0f16f7efacc2c9","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"dist":{"shasum":"73ab12fc482a52e529e39224df0f16f7efacc2c9","tarball":"http://registry-npm.ywwl.com/tomas/download/tomas-1.0.0.tgz","integrity":"sha512-7Pq4RCiXTKEwJKUfwtQLi8u7vganp0M90GhP8kjYw2NclGe5iJywvMWVO5+8qYVsuC+nlZ6pJ98L/pnEEjXYSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDLJBsxzt2DjkKekKWAopm/CXND0PCRMtw2kPt90YGOQAiEArIx7R9wBv8vHYlI4PohI+l2re3v+82MowYifj7mWQss="}],"size":2283,"noattachment":false,"key":"/tomas/-/tomas-1.0.0.tgz"},"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":1417536176467,"_cnpm_publish_time":1417536176467,"dist-tags":{"latest":"2.0.3"}}