Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

clay-constants

Package Overview
Dependencies
0
Maintainers
2
Versions
11
Issues
File Explorer

Advanced tools

clay-constants

Constant variables for clay

    3.5.1latest

Version published
Maintainers
2
Yearly downloads
5,530
decreased by-84.96%

Weekly downloads

Readme

Source

clay-constants

Build Status npm Version JS Standard

Constant variables for clay

Installation

$ npm install clay-constants --save

Usage

'use strict' const { LogPrefixes } = require('clay-constants') { const { CRYPTO_PREFIX } = LogPrefixes console.log(`${CRYPTO_PREFIX} put some logs...`) /* ... */ }

Values

CryptFormat

KeyValue
DIGEST_ALGORITHMsha256
GENERATE_BITS512
SIGN_FORMAThex

DataTypes

KeyValue
NUMBERcly:number
STRINGcly:string
BOOLEANcly:boolean
DATEcly:date
OBJECTcly:object
NULLcly:null
REFcly:ref
ENTITYcly:entity
IDcly:id

DateFormats

KeyValue
DUMP_FILENAME_FORMAT``

DriverSpec

KeyValue
REQUIRED_METHODSone,list,create,update,destroy,drop,resources
RESOURCE_BINDABLE_METHODSone,list,create,update,destroy,drop,oneBulk,listBulk,createBulk,updateBulk,destroyBulk,cursor

EntitySpec

KeyValue
RESERVED_ATTRIBUTESid,$$at,$$seal,$$by,$$policy,$$as,$$num
RESERVED_METHODStoString,toJSON,get,set,sync,update,save,destroy

IdSpec

KeyValue
ID_PATTERN/^[a-z0-9\-]+$/
SCOPE_PATTERN/^[a-z0-9\-]+$/

LogPrefixes

KeyValue
LUMP_PREFIX[clay-lump]
DRIVER_PREFIX[clay-driver]
CRYPTO_PREFIX[clay-crypt]
ID_PREFIX[clay-id]
ENTITY_PREFIX[clay-entity]
RESOURCE_PREFIX[clay-resource]
POLICY_PREFIX[clay-policy]

LumpSpec

KeyValue
NAME_PATTERN/^[A-Za-z][A-Za-za-z0-9\-_\.\/]*$/

ReservedResources

KeyValue
POLICYCLYPolicy
SIGNATURECLYSignature
TRACECLYTrace
LOCALCLYLocal
INDICESCLYIndices
RELATIONCLYRelation

ResourceEvents

KeyValue
REF_ADDcly:ref:add
REF_REMOVEcly:ref:remove
ANNOTATION_TOGGLEcly:annotate:toggle
POLICY_SETcly:policy:set
POLICY_REMOVEcly:policy:remove
RESOURCE_SUBcly:resource:sub
INVALIDATEcly:invalidate
INVALIDATE_BULKcly:invalidate:bulk
ENTITY_CREATEcly:entity:create
ENTITY_CREATE_BULKcly:entity:create:bulk
ENTITY_UPDATEcly:entity:update
ENTITY_UPDATE_BULKcly:entity:update:bulk
ENTITY_DESTROYcly:entity:destroy
ENTITY_DESTROY_BULKcly:entity:destroy:bulk
ENTITY_DROPcly:entity:drop
ENTITY_DROP_BULKcly:entity:drop:bulk

ResourceSpec

KeyValue
NAME_PATTERN/^[A-Za-z][A-Za-za-z0-9\/#\-_\.]*$/
DOMAIN_PATTERN/^[A-Za-z][A-Za-za-z0-9\/#\-_\.]*$/

License

This software is released under the Apache-2.0 License.

Keywords

FAQs

What is clay-constants?

Constant variables for clay

Is clay-constants popular?

The npm package clay-constants receives a total of 519 weekly downloads. As such, clay-constants popularity was classified as not popular.

Is clay-constants well maintained?

We found that clay-constants demonstrated a not healthy version release cadence and project activity. It has 2 open source maintainers collaborating on the project.

Last updated on 17 Jun 2019
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc