
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
.trace( will be automatically tagged, no matter where in your app it is.traceTrigger to filter a set of logs to only when there is a threshold is met or exceededheaders or headersMapping configured, scribbles will intercept outgoing HTTP and HTTPS requests and inject trace headers :sunglasses:stdOut to get a string of the entry OR dataOut to get an enriched object representing the log eventYou should be running node v8.5.0+
npm install --save scribbles
yarn add scribbles
const scribbles = require('scribbles');
scribbles.log("hello world")
// myRepo:local:master [ ] 2022-06-27T16:24:06.473 #3d608bf <log> index.js:174 hello world
scribbles[logLevel](message, [value, [error]])
.at()Each log level function has an .at() method that allows you to override the source location. This is useful when building logging wrappers or libraries:
// Override file and line number in log output
scribbles.log.at({ file: 'my-module.js', line: 42, col: 0, args: [] }, 'Custom location');
// All log levels support .at()
scribbles.error.at(from, 'Error message', errorObject);
scribbles.warn.at(from, 'Warning message');
scribbles.info.at(from, 'Info message', { data: 123 });
The from object requires:
file: Source file nameline: Line numbercol: Column number (can be 0)args: Array for template argument names (use [] for basic usage)Scribbles includes TypeScript definitions (index.d.ts). Key interfaces available:
ScribblesConfig - Configuration optionsLogEntry - Structured log entry returned by log functionsTraceOptions - Options for scribbles.trace()LogFunction - Type for log level functionsimport scribbles, { LogEntry, ScribblesConfig } from 'scribbles';
const config: Partial<ScribblesConfig> = {
logLevel: 'info',
dataOut: (entry: LogEntry) => console.log(entry)
};
scribbles.config(config);
There is a config that takes a configuration object.
console
true
false to disable automatic header injection into outgoing requestsrepo: The git repository name as it appears on the originbranch: The current git branchhash: Short git hash of current committraceId: Used for distributed tracing in microservices [more]spanId: the execution of a client call [more]span64: the base64 encoded version of spanIdspanLabel: A label to identify this tracetracestate: Ordered list of key/value hopsurl: Full request URL with query string (middleware only)path: URL path without query string (middleware only)query: Query string parameters object (middleware only)params: Route parameters object (middleware only)method: HTTP method e.g. GET, POST (middleware only)time: Time of logginglogLevel: The logging level for this entryhostname: The hostname of the operating system.instance: a base16 value representing the current instancemode: The environment your application is running in. e.g. local, dev, prod etc..fileName: The file namelineNumber: The line in the filemethod: The calling method or function namemessage: Message to logvalue: Values to logstackTrace: The stack trace if an Error object was passedv: The version of scribbles used to create this entry. This allows matching log body with parsers. As the layout may change with new versions.["error", "warn", "log", "info", "debug"]
logLevel to the start of the arrayconfig, trace, middleware, status, timer, timerEnd, groupstring of a header name to forwardRegExp to match header names to forwardarray of header names to forward. Can exact matching strings and/or RegExps.null to disable forwarding headersobject of output keys with input selector values.string OR array of strings: that will be taken in order of preference to be selected (i.e. If an incoming request has a header named the same as first index. Use that, else check the next index and so on)process.env
hash: attribute name of git short hashrepo: attribute name of git repository namebranch: attribute name of git branchinlineCharacterLimit[number]: Will inline values up to this length. ~ In Dev Mode, this will be set to the width of your terminal or default to 80indent[string]: preferred indentation. Defaults " " ~ 2 spacesdepth[number]: This represents how many nested steps in the object/array tree are to be walkedsingleQuotes[string]: Set to true to get single-quoted strings. Default: falsefilter(object, key) [function]: Expected to return a boolean of whether to include the property in the output.transform(object, key, val) [function]: Expected to return a string that transforms the string that resulted from stringifying a given property.
"console" - Attach log functions to the console object (replaces console.log, console.error, etc.)"global" - Attach log functions to the global objectobject - Attach log functions to a custom objectfalse
tracestate headers with a short hash for reduced bandwidthundefined: enabled in dev mode (if TTY), disabled in productionNO_COLOR and FORCE_COLOR environment variablesred, green, yellow, blue, magenta, cyan, white, gray, brightRed, brightGreen, brightYellow, brightBlue, brightMagenta, brightCyan, dim, bold{ error: 'red', warn: 'yellow', log: 'cyan', info: 'green', debug: 'gray' }false
Scribbles automatically serializes values passed to log functions into readable string representations. Here's how different data types are formatted:
| Type | Example | Output |
|---|---|---|
null | null | null |
undefined | undefined | undefined |
number | 123 | 123 |
boolean | true | true |
string | "hello" | 'hello' |
NaN | NaN | NaN |
Symbol | Symbol('s') | Symbol(s) |
| Type | Example | Output |
|---|---|---|
object | {foo:'bar'} | { foo:'bar' } |
array | [1,2,3] | [ 1, 2, 3 ] |
| nested array | [[1,2]] | [ [ 1, 2 ] ] |
| nested object | {a:{b:1}} | { a:{ b:1 } } |
| Type | Example | Output |
|---|---|---|
Date | new Date('2024-01-01') | Date(2024-01-01T00:00:00.000Z) |
Error | new Error('oops') | Error("oops") |
Buffer | Buffer.from([1,2,3]) | Buffer[ 1, 2, 3 ] |
Map | new Map([['a',1]]) | Map{ a:1 } |
Set | new Set([1,2]) | Set[ 1, 2 ] |
RegExp | /foo/gi | /foo/gi |
| Type | Example | Output |
|---|---|---|
| arrow function | (a,b)=>{} | (a,b)=>{-} |
| named function | function foo(){} | foo(){-} |
| anonymous function | function(){} | ƒ(){-} |
Circular references are detected and displayed safely:
const obj = { name: 'test' };
obj.self = obj;
scribbles.log(obj);
// Output: { name:'test', self:{ ...! } }
const arr = [1, 2];
arr.push(arr);
scribbles.log(arr);
// Output: [ 1, 2, [ ...! ] ]
Use pretty.depth to limit how deep nested structures are displayed:
scribbles.config({ pretty: { depth: 2 } });
scribbles.log({ a: { b: { c: { d: 1 } } } });
// Output: { a:{ b:{ + } } }
Strings that look like JSON are prefixed to avoid confusion:
scribbles.log("{not_json}");
// Output: String"{not_json}"
scribbles.log("[1,2,3]");
// Output: String"[1,2,3]"
Scribbles performs static code analysis at load time to automatically detect and display the names of variables passed to log functions. This makes it easier to identify which variable you're logging without manually adding labels.
When you call scribbles.log(myVariable), scribbles automatically extracts "myVariable" from the source code and includes it in the output:
const userData = { name: 'Alice', age: 30 };
scribbles.log(userData);
// Output: ... userData:{ name:'Alice', age:30 }
const count = 42;
scribbles.log(count);
// Output: ... count:42
Variable names are extracted for array access, object properties, and more:
const users = [{ name: 'Alice' }, { name: 'Bob' }];
scribbles.log(users[0]);
// Output: ... users[0]:{ name:'Alice' }
const config = { db: { host: 'localhost' } };
scribbles.log(config.db);
// Output: ... config.db:{ host:'localhost' }
When logging values, scribbles adds type annotations to help identify the data type:
| Type | Annotation |
|---|---|
| Function | varName:f(){..} |
| Error | varName:Error-Error() |
| Date | varName:Date(2024-01-01T00:00:00.000Z) |
| Buffer | varName:Buffer[..] |
| Map | varName:Map{..} |
| Set | varName:Set[..] |
| Array | varName:[..] |
| Object | varName:{..} |
| String | varName:"value" |
require() - bundled/transpiled code needs source mapsVia package.json
Just add a "scribbles" attribute
{
"name": "myrepo",
"version": "0.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
},
"scribbles":{
"mode":"test-runner",
"logLevel":"warn",
"levels":["danger", "error", "warn", "log", "info", "debug"],
"format":"{time} [{mode}#{hash}] <{logLevel}> {message}"
}
}
Via .config(...) function
scribbles.config({
mode:'test-runner',
logLevel:"warn", //only output warning messages or higher
levels:["danger", "error", "warn", "log", "info", "debug"],
format:'{time} [{mode}#{hash}] <{logLevel}> {message}'
})
scribbles.danger("hello world")
// 2022-06-27T16:24:06.473 [test-runner#3d608bf] <danger> hello world
There is also a option in config to set the dataOut that will receive an object representing the log entry.
scribbles.config({
dataOut:function(data){
console.log(data);
}
})
scribbles.log("hello world")
/*{
v:"1.2.3",
git:{
repo:"myRepo",
branch:"master",
hash:"3d608bf"
},
trace:{
traceId: "...",
spanId: "...",
spanLabel: "...",
...
},
info:{
time:2022-06-27T16:24:06.473Z,
mode:"local",
hostname:"box",
logLevel:"log",
instance:"bfc977a"
},
context:{
fileName:"index.js",
lineNumber:174,
method:"myFunction", // The calling function name
groupLevel:0, // Nesting depth when inside groups
groupLabel:"" // Labels of parent groups
},
input:{
message: "hello world",
value: undefined, // The value argument if provided
stackTrace: undefined, // Error stack trace if Error was passed
originalMessage: undefined, // Original error message when logging with separate message
from: ["at Object.<anonymous> (index.js:174:1)", ...] // Full call stack
},
}*/
You can configure scribbles to attach its log functions to the console or global object:
scribbles.config({ global: "console" })
// Now you can use:
console.log("hello world") // Uses scribbles formatting
console.error("something went wrong") // Uses scribbles formatting
This is helpful for gradually adopting scribbles in an existing codebase, or for ensuring all logging uses the same format without changing existing console.log calls.
:rocket: You can also poll the performance of your service. By calling scribbles.status(...)
This will attach an additional attribute to the dataOut and will not be available in stdOut.
state: the state of the services. e.g. "up", "blocking"cpu: CPU info
cores: number of available coresmodel: description of the processorspeed: MHz frequency speedpercUsed: load on process as percentagepercFree: available on process as percentagesys: System info
startedAt: when the system was startedarch: platform architecture. e.g "x64"platform: the operating system platformtotalMem: the total megabytes of memory being usedfreeMem: the total megabytes of memory freeusedMem: the total megabytes of memory being usedprocess: Node process info
percUsedCpu: the percentage of processing power being used by this processpercFreeMem: the percentage of memory being used by this processusedMem: the total megabytes of memory being used by this processstartedAt: when it's process was startedpTitle: the current process title (i.e. returns the current value of ps)pid: the ID of the processppid: the ID of the current parent processuser: node the name of the user who started nodevNode: version of nodenetwork: Networking info
port: listening on this Portconnections: number of current established connectionsscribbles.config({
dataOut:console.log
})
setInterval(function(){
scribbles.status();
}, 5000);
This will give you a performance snapshot every 5 seconds.
You can get Scribbles to store the Git info at build time, in order to show in the run time logs
Via webpack.config.js
Here is how to add git status to you logs.
//...
const ScribblesWithGitInBundle = require('scribbles/gitStatus');
//...
module.exports = {
//...
plugins: [
ScribblesWithGitInBundle,
// ...
]
//...
};
That's it!
process.env.You can select then via the config opts.
Via package.js
{
...,
"scribbles":{
...,
"gitEnv": {
"hash":"GITHUB_SHA",
"repo":"GITHUB_REPOSITORY",
"branch":"GITHUB_REF"
}
}
}
Tip: If you are using Heroku, the git hash is storted in the "SOURCE_VERSION"
To get accurate file & line references when transpiling your code, you will need to generate source maps as part of your build.
Generate source maps as part of the build
tsconfig.json add "sourceMap": true under "compilerOptions"--sourcemap flagdevtool: 'source-map' in your configSource map support in Node
--enable-source-maps flag to the node command for native supportYou can start a timer to calculate the duration of a specific operation. To start one, call the scribbles.timer(tag,[message]) function, giving it a name and an optional message. To stop the timer, just call the scribbles.timerEnd(tag,[message]) function, again passing the timer's name as the first parameter.
There are 3 functions:
scribbles.timer() - Starts and/or logs the current value a timer based on the tag passed to the function.scribbles.timerEnd() - logs the current value a timer and removes it, to be used later.scribbles.timer("Yo")
setTimeout(()=>{
scribbles.timer("Yo","123")
setTimeout(()=>{
scribbles.timerEnd("Yo","done!")
}, 300)
}, 400)
Output: You see the time it took to run the code
myRepo:local:master [ ] 2022-06-27T13:04:52.133 <timer> app.js:18 Yo (+0.00ms|0.00ms)
myRepo:local:master [ ] 2022-06-27T13:04:52.552 <timer> app.js:20 Yo:123 (+419.40ms|419.40ms)
myRepo:local:master [ ] 2022-06-27T13:04:52.875 <timerEnd> app.js:22 Yo:done! (+323.21ms|742.61ms)
You can group related log messages together using scribbles.group.start() and scribbles.group.end(). This is useful for organizing logs from complex operations.
const groupId = scribbles.group.start('User Authentication')
scribbles.log('Checking credentials')
scribbles.log('Validating token')
scribbles.group.end()
Output:
myRepo:local:master [ ] 2022-06-27T16:24:06.473 #3d608bf <group> index.js:10 User Authentication
myRepo:local:master [ ] 2022-06-27T16:24:06.474 #3d608bf <log> index.js:11 Checking credentials
myRepo:local:master [ ] 2022-06-27T16:24:06.475 #3d608bf <log> index.js:12 Validating token
myRepo:local:master [ ] 2022-06-27T16:24:06.476 #3d608bf <groupEnd> index.js:13
scribbles.group.start(label) - Starts a new group with an optional label. Returns a unique group ID.scribbles.group.collapsed(label) - Starts a collapsed group (for log viewers that support collapsing).scribbles.group.end(groupId?) - Ends a group. If no ID is provided, closes the last opened group (LIFO).Groups can be nested for hierarchical organization:
scribbles.group.start('Request Handler')
scribbles.log('Received request')
scribbles.group.start('Database Query')
scribbles.log('Connecting to database')
scribbles.log('Executing query')
scribbles.group.end()
scribbles.log('Sending response')
scribbles.group.end()
You can close a specific group (and all groups nested inside it) by passing its ID:
const outerGroup = scribbles.group.start('Outer')
scribbles.group.start('Inner 1')
scribbles.group.start('Inner 2')
scribbles.group.end(outerGroup) // Closes all three groups at once
For enhanced visual grouping, enable ASCII brackets with the pretty.groupBrackets option:
scribbles.config({
pretty: { groupBrackets: true }
})
scribbles.group.start('User Authentication')
scribbles.log('Checking credentials')
scribbles.log('Validating token')
scribbles.group.end()
Output:
⎡ myRepo:local:master [ ] ... <group> User Authentication
⎜ myRepo:local:master [ ] ... <log> Checking credentials
⎜ myRepo:local:master [ ] ... <log> Validating token
⎣
Scribbles supports colored terminal output to make logs easier to read. Colors are automatically enabled in development mode and disabled in production.
Colors work automatically - just use scribbles as normal:
scribbles.error('Something went wrong') // Red
scribbles.warn('Be careful') // Yellow
scribbles.log('Processing...') // Cyan
scribbles.info('Connected') // Green
scribbles.debug('Variable: x') // Gray
// Force enable colors
scribbles.config({ colors: true })
// Force disable colors
scribbles.config({ colors: false })
// Custom color scheme
scribbles.config({
colors: true,
colorScheme: {
error: 'brightRed',
warn: 'brightYellow',
log: 'blue',
info: 'cyan',
debug: 'dim'
}
})
// Colorblind-friendly mode
scribbles.config({
colors: true,
colorblindMode: true
})
Scribbles respects standard environment variables:
NO_COLOR - Disables all colors (https://no-color.org/)FORCE_COLOR - Forces colors even when not a TTYCI - Colors are automatically enabled in CI environments (when in dev mode)Standard: red, green, yellow, blue, magenta, cyan, white, gray
Bright: brightRed, brightGreen, brightYellow, brightBlue, brightMagenta, brightCyan
Styles: bold, dim, underline
Note:
scribbles.trace()is for distributed tracing (correlating logs across microservices), not forconsole.trace()-style stack trace output. For stack traces, pass an Error object to any log function (e.g.,scribbles.log("msg", new Error())) and use the{stackTrace}format token. ThedataOutcallback also receives afromproperty with the full call stack.
When trying to debug a problem with logs that are intertwined. A stacktrace will give you limited information. You can see where the Error occurred and a message. However you cannot see the values as it flow through your system.
Using the trace system. Each log entry will be able to be connected, as it flows through your system.
To use the trace system you only need to pass in a root function that acts as the start of the execution. Everything that is executed within this function will be matched to the same trace ID, and name if provided.
scribbles.trace([label/opt,]next_fu)
The first argument to can be an options object. Here you can specify a spanLabel to tag your entries, atraceId & the tracestate that are using in distributed tracing.
index.js
// for fun lets set a custom format for our logs
scribbles.config({format:`[{traceName} {spanId}] {message}`})
// an example of an event handler
function incoming(dataIn){
// wrap the work we want to do in `scribbles.trace`
scribbles.trace("eventstream",(spanId)=>{
// Event message logged from with here will have this correlation ID
// spanId = 090e8e40000005
workToDo(dataIn); // kick of the work
})
}
eventstream.js
function workToDo(dataIn){
// ...
// user scribbles as normal
scribbles.log("Doing something with the eventstream")
// [eventstream 090e8e40000005] Doing something with the eventstream
// ...
}
Log just the timeline of events you care about.
By setting a "traceTrigger" level. All scribbles calls within a trace context will respect it. If a call is make that matchs or exceds this level. Past, current & new events in this context will be outputted, else they will be suppressed
scribbles.config({
// Any call to error or higher will trigger all logs from logLevel for this specific this execution context
traceTrigger:"error",
// logLevel dont not have to be set. Will default to All
logLevel:'warning',
// Levels do not need to be set this is only for demonstration purposes
levels:['fatal','error','warning','info'],
})
scribbles.trace('in_trace',()=>{
scribbles.info(" --- Will NEVER be shown") // as this is below the logLevel
setTimeout(()=>{
// will be store, but will not be sent out at this point
scribbles.warning(" --- Wait")
setTimeout(()=>{
// traceTrigger exceded! store event will be sent out + this event
scribbles.fatal(" --- Now!")
setTimeout(()=>{
// will be sent out at the traceTrigger was already hit, for this *trace context*
scribbles.warning(" --- More!")
}, 500)
}, 500)
}, 500)
})
/*
myRepo:local:master [in_trace 3b3c6000000001] 2022-06-27T09:22:52.588 #3d608bf <warning> app.js:14 --- Wait
myRepo:local:master [in_trace 3b3c6000000001] 2022-06-27T09:22:52.890 #3d608bf <fatal> app.js:16 --- Now!
myRepo:local:master [in_trace 3b3c6000000001] 2022-06-27T09:22:53.199 #3d608bf <warning> app.js:18 --- More!
*/
in accordance with W3C trace-context
Distributed tracing is powerful and makes it easy for developers to find the causes of issues in highly-distributed microservices applications, as they track how a single interaction was processed across multiple services. But while tracing has exploded in popularity in recent years, there still isn’t much built-in support for it in languages, web frameworks, load balancers, and other components, which can lead to missing components or broken traces.
🤔 Generating and attaching trace-context values to request headers is a standardized way of addressing this problem.
Instrumenting web frameworks, storage clients, application code, etc. to make tracing work out of the box. 🥳
const scribbles = require('scribbles');
const axios = require('axios');
const express = require('express');
scribbles.config({
headers:["X-Amzn-Trace-Id"]
});
const app = express();
// start a trace for each incoming request.
app.use(scribbles.middleware.express);
app.get('/', function (req, res){
scribbles.log("incoming");
// myRepo:local:master [198.10.120.12 090e8e40000005] 2022-06-27T16:24:06.473 #3d608bf <log> index.js:174 incoming
// Just by calling this other service normally, scribbles will inject the tracing headers
axios.get('https://some.domain.com/foo/')
.then(response => {
scribbles.log(response.data);
res.send("fin")
})
.catch(error => {
scribbles.error(error);
});
}) // END app.get '/'
app.listen(port, () => scribbles.status(`App is ready!`))
Example above is for axios but it will also work with http/https and request
It may look something like this
function traceMiddleware({headers}, res, next){
scribbles.trace({
// You can pass the traceparent as the traceId
// or you can pull the traceId from the traceparent and pass that
traceId:headers.traceparent,
tracestate:headers.tracestate,
// lets tag the current trace/span with the caller's IP
spanLabel:headers['x-forwarded-for']
},(spanId) => next());
} // END express
Security Note: Headers like
x-forwarded-forcan be spoofed by clients. Only trust these headers when your application runs behind a trusted reverse proxy (e.g., AWS ALB, Nginx, CloudFlare). For Express apps, configureapp.set('trust proxy', ...)appropriately. ThespanLabelis intended for logging/tracing context only—do not use it for security-critical decisions like authentication or rate limiting. For more robust proxy detection, consider using IP intelligence API services.
app.get('/', function (req, res){
scribbles.log("incoming");
// myRepo:local:master [198.10.120.12 090e8e40000005] 2022-06-27T16:24:06.473 #3d608bf <log> index.js:174 incoming
axios.get('https://some.domain.com/foo/',{
headers:scribbles.trace.headers() // tracing header IDs
})
.then(response => {
scribbles.log(response.data);
res.send("fin")
})
.catch(error => {
scribbles.error(error);
});
}) // END app.get '/'
The trace.headers() function returns an object containing:
traceparent - W3C trace context parent headertracestate - W3C trace context state headerx-git-hash - The current git commit hash (automatically included)Use headersMapping to rename headers from incoming requests to different names for outgoing requests. This is useful when different services use different header naming conventions.
scribbles.config({
// Simple mapping: rename 'x-request-id' to 'x-trace-id'
headersMapping: {
'x-trace-id': 'x-request-id'
}
});
// With fallback priority: try 'x-correlation-id' first, then 'x-request-id'
scribbles.config({
headersMapping: {
'x-trace-id': ['x-correlation-id', 'x-request-id']
}
});
The array form checks headers in order - the first matching header is used.
When tracing across many microservices, the tracestate header can grow large (up to 512 bytes with 32 vendors per W3C spec). This can cause performance issues, especially at network edges where bandwidth matters.
The edge lookup hash feature lets you replace the full tracestate with a short hash at your infrastructure edge. The original tracestate is stored in an in-memory lookup table and can be retrieved by downstream services.
scribbles.config({
edgeLookupHash: true
});
How it works:
edgeLookupHash is enabled, outgoing requests will have their tracestate header replaced with a short hash (e.g., h:a1b2c3d4e5f67890)Example flow:
┌─────────────────┐ tracestate: h:abc123... ┌─────────────────┐
│ Edge Gateway │ ─────────────────────────────► │ Internal Svc │
│ (scribbles) │ │ (scribbles) │
└─────────────────┘ └─────────────────┘
│ │
│ stores full tracestate │ looks up hash
│ in memory lookup │ restores full
▼ ▼
h:abc123... → "vendor1=val1,vendor2=val2,..." gets original tracestate
When to use:
Limitations:
When using the Express middleware, you can include request details in your logs:
scribbles.config({
format: '{method} {path} [{spanId}] {time} <{logLevel}> {message}'
});
app.use(scribbles.middleware.express);
app.get('/users/:id', (req, res) => {
scribbles.log("Fetching user");
// GET /users/123 [090e8e40000005] 2022-06-27T16:24:06.473 <log> Fetching user
});
The available request tokens are:
{method} - HTTP method (GET, POST, PUT, DELETE, etc.){url} - Full URL including query string (e.g., /users/123?sort=name){path} - URL path without query string (e.g., /users/123){query} - Query parameters as object (e.g., { sort: 'name' }){params} - Route parameters as object (e.g., { id: '123' })These tokens are only populated when using scribbles.middleware.express.
Scribbles uses a modular architecture with the main entry point (index.js) serving as a thin orchestration layer that wires together specialized modules in the src/ directory.
| Module | Purpose |
|---|---|
scribble.js | Core logging function - creates structured log entries |
scribblesConfig.js | Configuration and log level setup |
trace.js | Distributed tracing with W3C trace-context support |
middleware.js | Express middleware for trace context propagation |
namespace.js | CLS namespace for async trace correlation |
hijacker.js | HTTP/HTTPS request interception for header injection |
stringify.js | Custom JSON stringification with pretty printing |
status.js | System status collection (CPU, memory, process) |
helpers.js | Utility functions (deepMerge, getSource) |
args2keys.js | Argument parsing for log functions |
parceStringVals.js | Template string parsing with type annotations |
regexUtils.js | Regex validation and conversion |
loader.js | Code instrumentation loader |
config.js | Default configuration values |
getGitStatus.js | Git repository information retrieval |
checkNodeVer.js | Node.js version validation |
utils.js | Trace state parsing utilities |
See src/files.md for detailed module documentation.
small print:
MIT - If you use this module(or part), credit it in the readme of your project and failing to do so constitutes an irritating social faux pas. Besides this, do what you want with this code but don't blame me if it does not work. If you find any problems with this module, open issue on Github. However reading the Source Code is suggested for experience JavaScript and node engineer's and may be unsuitable for overly sensitive persons with low self-esteem or no sense of humour. Unless the word tnetennba has been used in it's correct context somewhere other than in this warning, it does not have any legal or grammatical use and may be ignored. No animals were harmed in the making of this module, although the yorkshire terrier next door is living on borrowed time, let me tell you. Those of you with an overwhelming fear of the unknown will be gratified to learn that there is no hidden message revealed by reading this warning backwards, I think.
FAQs
Scribbles is a log and tracing lib for Node
We found that scribbles demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.