Catalog npm
Back to packageRELEASE DETAILS

1.0.8

npm

4readclub.api.shared

shared functions for project 4readclub

Published10 Jul 2019
Direct dependencies5
Transitive dependenciesNot calculated

README

Current package documentation

Shared

My template for back-end style project, consists of two parts: this template and MS SQL base. This is a template for internal features, do not use it. Features:

  1. MS SQL 1.1. direct access 1.2. actions 1.3. settings with hot reload 1.4. write 'i am life' info (including memory use)
  2. Setting in ini file
  3. Panic

Kind: global class

shared.app_name : string

Kind: instance property of Shared

shared.app_version : string

Kind: instance property of Shared

shared.app_similar : number

Kind: instance property of Shared

shared.app_need_exit : boolean

Kind: instance property of Shared

shared.ini_setting : lib_setting

Kind: instance property of Shared

shared.sql : lib_sql

Kind: instance property of Shared

shared.init(app_filename, app_version, callback)

Kind: instance method of Shared

ParamType
app_filenamestring
app_versionstring
callbackfunction

shared.panic(text)

print panic text and halt app

Kind: instance method of Shared

ParamType
textstring

shared.sql_setting_get(setting_rid) ⇒ string

get one setting value by setting code

Kind: instance method of Shared

ParamType
setting_ridstring

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
viva-convert
Environment
{
  "local_name": "viva-convert",
  "alias": false,
  "peer_metadata": null
}
^1.0.43runtime
viva-server-mssql
Environment
{
  "local_name": "viva-server-mssql",
  "alias": false,
  "peer_metadata": null
}
^1.0.78runtime
viva-setting
Environment
{
  "local_name": "viva-setting",
  "alias": false,
  "peer_metadata": null
}
^1.0.7runtime
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^12.6.1development
pre-commit
Environment
{
  "local_name": "pre-commit",
  "alias": false,
  "peer_metadata": null
}
^1.2.2development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-9mmEr86RKElqoSjb9kfZfCY1mczNzUXJVpDSS6tWzEAEIAkbo4SU86LfQKCar7ohrreeP7R0FziHZAq/Zd6Mfg==",
  "shasum": "1d7d7c0b7aa6e7c16533ad0867f118cdca310873",
  "tarball": "https://registry.npmjs.org/4readclub.api.shared/-/4readclub.api.shared-1.0.8.tgz",
  "fileCount": 4,
  "unpackedSize": 31731,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJf+rCRA9TVsSAnZWagAAdrkP/22+RmMoSXkfgiJJRdRD\nhPDr1tNmYilGVB0tDloEKKbwYMInLkZr0jp3bIshXrIBlezSc9WsPD8tZRov\nFcWb829Shu+TwjA1NKB1XdLkIIlDtuwndKZchFik21jaFLgW9RlRcZCqR6y0\nF0dUk9LILg8s79chQz/EafcyjgEdLFUY8P6xkuGUUSjr7ZeSUOlGLDweuQv1\n+rUEK/Def9iMTPRWJTh0DBTiu/hIg6rHJfKxE+wJsOaK0Nh8kPQGsP2WUzdY\njyR10GfllOoY/FfQYJMMyePzD1H89hT8UYkVyzE+ka9mzcNsXqPZ3C1tlWT0\n66ARmG6Ro4PmJ934SnxeWJo88+v/5qLWZgR1Dmryjc1KBhwhL52cV617n0Nv\nn/K29uJwIAva2Yo97opMj7WnQ/cULK4nHFIQzPk/+nKff8oc8qlC7ZS0MkTE\nQjRLwsONvX7gTPScP6ZbxCtQCuZTYfZf8/MAgSyzM2Z04bplkIK3oD/SP2EM\nzX0BO6J5vuucfo0Ks7HYv4eHPjUhjxLXH57EXDYA3VX+aMNfuM4+rgK3aQcU\nhKgQc2g935nxes+HTh972r0w5wrminwwxswSsBddu0d7I+HmozYNDPagUQ8O\nZRY8fM3Z+nBHqpvQowkBnZu3HUsv8EeK8QtB3gDlr/0ya+AXeV6BzP6scEuE\nPIRw\r\n=SHpG\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQDzJvWgNMwSsA5NPHOG3a0cGA4tQ8T7uCCMHD2k4oKA2QIhAM/hWdoPWJKFFVQKNnSHnFv+ofr7ngZ4KphRYxAJdRaM"
    }
  ]
}

Repository

NOT_FOUND
4readclub/api.shared

Shared repository data · GitLab

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:15 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:31b437d7cf77e2ffcabaefcd28b302463ded15f1959c9de2beca94d5e97cd694

Other collected versions

1.0.1522 Jul1.0.1315 Jul1.0.1215 Jul1.0.1112 Jul1.0.1012 Jul1.0.911 JulView all collected versions →