
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@kentcdodds/log-module
Advanced tools
A CLI tool that imports a module and logs all its exports with syntax highlighting.
A CLI tool that imports a module and logs all its exports with syntax highlighting.
npx @kentcdodds/log-module ./path/to/module.ts
Or install globally:
npm install -g @kentcdodds/log-module
log-module ./path/to/module.ts
util.inspect@babel/code-frame)Given a module:
// example.ts
export const name = 'world'
export const config = { nested: { deep: true } }
export const getData = async () => ({ data: 'fetched' })
export const promise = Promise.resolve({ resolved: 'success' })
export const failing = Promise.reject(new Error('Oops'))
Running log-module example.ts outputs:
name:
'world'
config:
{ nested: { deep: true } }
getData:
[AsyncFunction: getData]
promise (awaited):
{ resolved: 'success' }
failing (awaited):
rejected promise: Error: Oops
at /path/to/example.ts:5:40
When a module has a syntax error, you get a highlighted code frame:
Failed to import module: Expected ',', got 'missing'
1 | export const broken = {
2 | foo: "bar"
> 3 | missing: "comma"
| ^ Expected ',', got 'missing'
4 | }
MIT
FAQs
A CLI tool that imports a module and logs all its exports with syntax highlighting.
We found that @kentcdodds/log-module 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.