0.0.12 β€’ Published 7 years ago

flipcache v0.0.12

Weekly downloads
21
License
-
Repository
github
Last release
7 years ago

πŸ’ΎπŸ’Έ flipcache

NPM version MIT License fliphub flipfam

temporary, safe, restorable, cacheable, configurable, chainable/fluent data

πŸ“¦ usage

yarn add flipcache
npm i flipcache --save
const flipcache = require('flipcache')

πŸ“˜ examples

const onthefly = flipcache
  .from('fromfile').end()
  .to('otherfile')
  .autoRemove(2000)
const mocha = flipcache
  .from('mochaOptsFile').end()
  .to('mochaOptsBackupFile')
  .autoRestore(2000)
const datas = flipcache
  .from('./index.js')
  .load()
  .json()
  .update({eh: true})
  .parse() // optional, is done for you
  .clean()
  .write()

πŸ‘£ dir

const datas = flipcache
  .from('./index.js')
  .dir(__dirname)
  .json()
  .setIfNotEmpty({eh: true})
  .write()

πŸ‘½ exports

const {
  File,
  Files,
  Core,
  Cache,
  JSONChain,
  ConfigStore,
  FlipFind,
  fliphash,
} = require('flipcache')

πŸ”— more