clay-constants
Advanced tools
Constant variables for clay
Weekly downloads
Readme
Constant variables for clay
$ npm install clay-constants --save
const { LogPrefixes } = require('clay-constants')
{
const { CRYPTO_PREFIX } = LogPrefixes
console.log(`${CRYPTO_PREFIX} put some logs...`)
/* ... */
}
Key | Value |
---|---|
DIGEST_ALGORITHM | sha256 |
GENERATE_BITS | 512 |
SIGN_FORMAT | hex |
Key | Value |
---|---|
NUMBER | cly:number |
STRING | cly:string |
BOOLEAN | cly:boolean |
DATE | cly:date |
OBJECT | cly:object |
NULL | cly:null |
REF | cly:ref |
ENTITY | cly:entity |
ID | cly:id |
Key | Value |
---|---|
DUMP_FILENAME_FORMAT | `` |
Key | Value |
---|---|
REQUIRED_METHODS | one,list,create,update,destroy,drop,resources |
RESOURCE_BINDABLE_METHODS | one,list,create,update,destroy,drop,oneBulk,listBulk,createBulk,updateBulk,destroyBulk,cursor |
Key | Value |
---|---|
RESERVED_ATTRIBUTES | id,$$at,$$seal,$$by,$$policy,$$as,$$num |
RESERVED_METHODS | toString,toJSON,get,set,sync,update,save,destroy |
Key | Value |
---|---|
ID_PATTERN | /^[a-z0-9\-]+$/ |
SCOPE_PATTERN | /^[a-z0-9\-]+$/ |
Key | Value |
---|---|
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] |
Key | Value |
---|---|
NAME_PATTERN | /^[A-Za-z][A-Za-za-z0-9\-_\.\/]*$/ |
Key | Value |
---|---|
POLICY | CLYPolicy |
SIGNATURE | CLYSignature |
TRACE | CLYTrace |
LOCAL | CLYLocal |
INDICES | CLYIndices |
RELATION | CLYRelation |
Key | Value |
---|---|
REF_ADD | cly:ref:add |
REF_REMOVE | cly:ref:remove |
ANNOTATION_TOGGLE | cly:annotate:toggle |
POLICY_SET | cly:policy:set |
POLICY_REMOVE | cly:policy:remove |
RESOURCE_SUB | cly:resource:sub |
INVALIDATE | cly:invalidate |
INVALIDATE_BULK | cly:invalidate:bulk |
ENTITY_CREATE | cly:entity:create |
ENTITY_CREATE_BULK | cly:entity:create:bulk |
ENTITY_UPDATE | cly:entity:update |
ENTITY_UPDATE_BULK | cly:entity:update:bulk |
ENTITY_DESTROY | cly:entity:destroy |
ENTITY_DESTROY_BULK | cly:entity:destroy:bulk |
ENTITY_DROP | cly:entity:drop |
ENTITY_DROP_BULK | cly:entity:drop:bulk |
Key | Value |
---|---|
NAME_PATTERN | /^[A-Za-z][A-Za-za-z0-9\/#\-_\.]*$/ |
DOMAIN_PATTERN | /^[A-Za-z][A-Za-za-z0-9\/#\-_\.]*$/ |
This software is released under the Apache-2.0 License.
Constant variables for clay
The npm package clay-constants receives a total of 519 weekly downloads. As such, clay-constants popularity was classified as not popular.
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.