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

3.2.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

  • rtag : object
  • when : object
  • duration : object
  • archive : object
  • derive : object
  • errors : object
  • init$ : boolean

Action Patterns

Action Descriptions

« role:cache,resolve:rtag »

Use rtag to load cached version of expensive result.


« 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.


/@seneca/entity-util/

    Package Sidebar

    Install

    npm i @seneca/entity-util

    Weekly Downloads

    44

    Version

    3.2.0

    License

    MIT

    Unpacked Size

    49.5 kB

    Total Files

    13

    Last publish

    Collaborators

    • lmscunha
    • alex01
    • lilsweetcaligula
    • stokesriona
    • rjrodger