Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including caterpillar with all npm packages installed. Try it out:

var caterpillar = require("caterpillar")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

caterpillar v6.5.0

Caterpillar is the ultimate logging system for Deno, Node.js, and Web Browsers. Log levels are implemented to the RFC standard. Log entries can be filtered and piped to various streams, including coloured output to the terminal, the browser's console, and debug files. You can even write your own transforms.

Caterpillar

Travis CI Build Status NPM version NPM downloads Dependency Status Dev Dependency Status
GitHub Sponsors donate button Patreon donate button Flattr donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button Wishlist browse button

Caterpillar is the ultimate logging system for Deno, Node.js, and Web Browsers. Log levels are implemented to the RFC standard. Log entries can be filtered and piped to various streams, including coloured output to the terminal, the browser's console, and debug files. You can even write your own transforms.

Usage

Complete API Documentation.

Examples

Install

npm

  • Install: npm install --save caterpillar
  • Import: import * as pkg from ('caterpillar')
  • Require: const pkg = require('caterpillar')

Deno

import * as pkg from 'https://unpkg.com/caterpillar@^6.5.0/edition-deno/index.ts'

Skypack

<script type="module">
    import * as pkg from '//cdn.skypack.dev/caterpillar@^6.5.0'
</script>

unpkg

<script type="module">
    import * as pkg from '//unpkg.com/caterpillar@^6.5.0'
</script>

jspm

<script type="module">
    import * as pkg from '//dev.jspm.io/caterpillar@6.5.0'
</script>

Editions

This package is published with the following editions:

  • caterpillar aliases caterpillar/index.cjs which uses the Editions Autoloader to automatically select the correct edition for the consumer's environment
  • caterpillar/source/index.ts is TypeScript source code with Import for modules
  • caterpillar/edition-browsers/index.js is TypeScript compiled against ES2019 for web browsers with Import for modules
  • caterpillar/edition-esnext/index.js is TypeScript compiled against ESNext for Node.js 14 with Require for modules
  • caterpillar/edition-es2019/index.js is TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules
  • caterpillar/edition-es2019-esm/index.js is TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules
  • caterpillar/edition-deno/index.ts is TypeScript source code made to be compatible with Deno

History

Discover the release history by heading on over to the HISTORY.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

GitHub Sponsors donate button Patreon donate button Flattr donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button Wishlist browse button

Contributors

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

License

Unless stated otherwise all works are:

and licensed under:

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free