@seneca/entity-util
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

seneca-entity-util

Npm Travis Coveralls DeepScan grade Maintainability devDependencies Status

Utilities for Seneca entities.

  • rtag: random revision tags generated per save; provides support for complex object caching.
  • archive: archival of deleted entities.
  • when: injection of created and modified time stamps
  • duration: injection of entity action duration times in results as meta data

Install

$ npm install seneca-entity-util seneca-promisify

Options

None.

Action Patterns

Action Descriptions

« "role":"cache","resolve":"rtag" »

Use rtag to load cached version of expensive result.

Parameters

  • space : string " "
  • key : string " "
  • rtag : string " "
  • resolver : function " "

« "role":"cache","stats":"rtag" »

Get rtag cache usage statistics.


« "sys":"entity","cmd":"list" »

No description provided.


« "sys":"entity","cmd":"load" »

No description provided.


« "sys":"entity","cmd":"remove" »

No description provided.


« "sys":"entity","cmd":"save" »

Override sys:entity,cmd:save to apply utilities.


« "sys":"entity","derive":"add" »

No description provided.


« "sys":"entity","derive":"list" »

No description provided.


Readme

Keywords

Package Sidebar

Install

npm i @seneca/entity-util

Weekly Downloads

106

Version

2.0.0

License

MIT

Unpacked Size

49.5 kB

Total Files

13

Last publish

Collaborators

  • lmscunha
  • alex01
  • lilsweetcaligula
  • stokesriona
  • rjrodger