1.0.1 • Published 5 years ago

nor-debug v1.0.1

Weekly downloads
108
License
MIT
Repository
github
Last release
5 years ago

nor-debug

Debug helpers for Node.js apps.

TODO

We use Trello board to organize development and keep track on things to do.

Installation

You can install the module from the NPM: npm install nor-debug

Get current line number

You can use debug.__line to get current line number for debugging purposes.

Get current stack

debug.__stack is used by debug.__line to get the current line number.

Development or production mode tests

You can test for development/production mode (NODE_ENV) with the debug.isProduction() and debug.isDevelopment() which will return boolean values, true or false.

Start the app using NODE_ENV=production node app.js for production mode.

Start the app using NODE_ENV=development node app.js for development mode.

Default is development mode.

Write debug log messages

You may use debug.log(msg, [msg2...]) to write debug messages. This function will only write log if the app is running in development mode. All non-string arguments will be converted to string with util.inspect().

Commercial Support

You can buy commercial support from Sendanor.

1.0.1

5 years ago

1.0.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.57

8 years ago

0.1.55

9 years ago

0.1.54

9 years ago

0.1.53

9 years ago

0.1.52

9 years ago

0.1.51

9 years ago

0.1.50

9 years ago

0.1.49

9 years ago

0.1.48

9 years ago

0.1.47

9 years ago

0.1.46

9 years ago

0.1.45

10 years ago

0.1.44

10 years ago

0.1.43

10 years ago

0.1.42

10 years ago

0.1.41

10 years ago

0.1.40

10 years ago

0.1.39

10 years ago

0.1.38

10 years ago

0.1.37

10 years ago

0.1.36

10 years ago

0.1.35

10 years ago

0.1.34

10 years ago

0.1.33

10 years ago

0.1.32

10 years ago

0.1.31

10 years ago

0.1.30

10 years ago

0.1.29

10 years ago

0.1.28

10 years ago

0.1.27

10 years ago

0.1.26

10 years ago

0.1.25

10 years ago

0.1.24

10 years ago

0.1.23

10 years ago

0.1.22

10 years ago

0.1.21

10 years ago

0.1.20

10 years ago

0.1.19

10 years ago

0.1.18

10 years ago

0.1.17

10 years ago

0.1.16

10 years ago

0.1.15

10 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago