
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
Convenience utility to print function implementations, properties and globals from the command-line.
Node.js command-line tool for inspecting objects, function implementations and listing properties, with syntax highlighting.
$ nim path.join
function () {
var paths = Array.prototype.slice.call(arguments, 0);
return exports.normalize(paths.filter(function(p, index) {
if (typeof p !== 'string') {
throw new TypeError('Arguments to path.join must be strings');
}
return p;
}).join('/'));
}

$ npm install -g nim
$ nim process
{
title: 'node',
version: 'v0.10.24',
argv: [ 'node', '/usr/local/bin/nim', 'process' ],
...
}
$ nim process.versions
{
http_parser: '1.0',
node: '0.10.29',
v8: '3.14.5.9',
ares: '1.9.0-DEV',
uv: '0.10.27',
zlib: '1.2.3',
modules: '11',
openssl: '1.0.1h'
}
$ nim os
{
endianness: [Function],
hostname: [Function],
loadavg: [Function],
uptime: [Function],
freemem: [Function],
totalmem: [Function],
cpus: [Function],
type: [Function],
release: [Function],
networkInterfaces: [Function],
arch: [Function],
platform: [Function],
tmpdir: [Function],
tmpDir: [Function],
getNetworkInterfaces: [Function: deprecated],
EOL: '\n'
}
nim will try load the appropriate package using regular local package resolution.
$ nim express
function createApplication() {
var app = function(req, res, next) {
app.handle(req, res, next);
};
mixin(app, proto);
mixin(app, EventEmitter.prototype);
app.request = { __proto__: req, app: app };
app.response = { __proto__: res, app: app };
app.init();
return app;
}
$ nim express.
nim express.
express.constructor
express.toString
express.toLocaleString
express.valueOf
express.hasOwnProperty
express.isPrototypeOf
express.propertyIsEnumerable
express.__defineGetter__
express.__lookupGetter__
express.__defineSetter__
express.__lookupSetter__
express.length
express.name
express.arguments
express.caller
express.constructor
express.bind
express.toString
express.call
express.apply
express.length
express.name
express.arguments
express.caller
express.prototype
express.application
express.request
express.response
express.Route
express.Router
express.query
express.static
express.json
express.urlencoded
express.bodyParser
express.compress
express.cookieSession
express.session
express.logger
express.cookieParser
express.favicon
express.responseTime
express.errorHandler
express.timeout
express.methodOverride
express.vhost
express.csrf
express.directory
express.limit
express.multipart
express.staticCache
Remember to escape parens or wrap the expression in quotes.
$ nim "crypto.getCiphers()"
[
'CAST-cbc',
'aes-128-cbc',
'aes-128-cbc-hmac-sha1',
...
'seed-cfb',
'seed-ecb',
'seed-ofb'
]
This is similar to the result you'd get from node -p "require('crypto').getCiphers()" with added syntax highlighting.
You can list properties of an object by appending a . to the name of
the object you want to inspect. This lists all the properties of the
current object and each object in its prototype chain.
$ nim stream.
stream.constructor
stream.toString
stream.toLocaleString
stream.valueOf
stream.hasOwnProperty
stream.isPrototypeOf
stream.propertyIsEnumerable
stream.__defineGetter__
stream.__lookupGetter__
stream.__defineSetter__
stream.__lookupSetter__
stream.length
stream.name
stream.arguments
stream.caller
stream.constructor
stream.bind
stream.toString
stream.call
stream.apply
stream.length
stream.name
stream.arguments
stream.caller
stream.prototype
stream.super_
stream.Readable
stream.Writable
stream.Duplex
stream.Transform
stream.PassThrough
stream.Stream
For example, listing the properties on stream.prototype:
$ nim stream .
stream.prototype.constructor
stream.prototype.toString
stream.prototype.toLocaleString
stream.prototype.valueOf
stream.prototype.hasOwnProperty
stream.prototype.isPrototypeOf
stream.prototype.propertyIsEnumerable
stream.prototype.__defineGetter__
stream.prototype.__lookupGetter__
stream.prototype.__defineSetter__
stream.prototype.__lookupSetter__
stream.prototype.constructor
stream.prototype.setMaxListeners
stream.prototype.emit
stream.prototype.addListener
stream.prototype.on
stream.prototype.once
stream.prototype.removeListener
stream.prototype.removeAllListeners
stream.prototype.listeners
stream.prototype.constructor
stream.prototype.pipe
The above is a convenience syntax and exactly equivalent to inspecting the prototype with . directly:
$ nim stream.prototype.
stream.prototype.constructor
stream.prototype.toString
stream.prototype.toLocaleString
stream.prototype.valueOf
stream.prototype.hasOwnProperty
stream.prototype.isPrototypeOf
stream.prototype.propertyIsEnumerable
stream.prototype.__defineGetter__
stream.prototype.__lookupGetter__
stream.prototype.__defineSetter__
stream.prototype.__lookupSetter__
stream.prototype.constructor
stream.prototype.setMaxListeners
stream.prototype.emit
stream.prototype.addListener
stream.prototype.on
stream.prototype.once
stream.prototype.removeListener
stream.prototype.removeAllListeners
stream.prototype.listeners
stream.prototype.constructor
stream.prototype.pipe
Sometimes nim's output can be many screenfuls. Feel free to pipe nim through your pager of choice:
e.g.
$ nim crypto | less
If your pager is having trouble displaying colorcodes, pass it the -r flag:
$ nim crypto | less -r
$ nim crypto | more -r
If you're like me, you regularly boot up node's repl just to explore objects or gain insight on how things work by logging function implementations. nim is a more convenient way of doing this.
..MIT
FAQs
Convenience utility to print function implementations, properties and globals from the command-line.
The npm package nim receives a total of 34 weekly downloads. As such, nim popularity was classified as not popular.
We found that nim demonstrated a not healthy version release cadence and project activity because the last version was released 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
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.