n-commons
Node Commons utilities
Last updated 9 months ago by l1nknyto .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install n-commons 
SYNC missed versions from official npm registry.

n-commons

Node Commons Utilities

Api:

  • init
  • ok
  • noop
  • async
  • asyncObject
  • getObjectFn
  • compareArray
  • getUniqueId
  • finallyCall
  • ellipsis
  • stringifyParams

env name : process.env.APP_NAME,

  • 1 - error, 2 - info, 3 - debug

*/ function isDebug() { return (process.env.LOG_LEVEL && process.env.LOG_LEVEL >= 3); return process.env.LOG_PATH + '/' + process.env.APP_NAME.toLowerCase() + suffix;

REDIS_SESSION_PREFIX REDIS_LOCK_TTL

const TIMEOUT = (process.env.CACHE_TIMEOUT) ? process.env.CACHE_TIMEOUT : (5 * 60 * 1000);

TODO: merge protocol from n-commons-server di amproker-core replace require logger, redis, cache di semua project terutama ams ans amproker-core amproker-server

Current Tags

  • 1.2.3                                ...           latest (9 months ago)

12 Versions

  • 1.2.3                                ...           9 months ago
  • 1.2.2                                ...           9 months ago
  • 1.2.1                                ...           9 months ago
  • 1.2.0                                ...           9 months ago
  • 1.1.6                                ...           2 years ago
  • 1.1.5                                ...           2 years ago
  • 1.1.4                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 1
Last Week 1
Last Month 1
Dependencies (10)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |