0.35.0 • Published 5 years ago

@timberio/browser v0.35.0

Weekly downloads
475
License
ISC
Repository
github
Last release
5 years ago

🌲 Timber - Browser logging

Beta: Ready for testing Speed: Blazing ISC License

New to Timber? Here's a low-down on logging in Javascript.

@timberio/browser

This NPM library is for logging in the browser.

Here's how to get started:

Installation

Using Webpack / Rollup

If you're using a module bundler like Webpack or Rollup, you can install the package directly from NPM:

npm i @timberio/browser

In ES6/Typescript, import the Timber class:

import { Timber } from "@timberio/browser";

For CommonJS, require the package:

const { Timber } = require("@timberio/browser");

Via a <script> tag

If you're not using a Node.js module bundler, you can log in any client-side app by dropping in a <script> tag:

<script src="https://unpkg.com/@timberio/browser@0.31.0/dist/umd/timber.js"></script>

This will place the Timber class on window.Timber.

Creating a client

You can instantiate the client in the same way, whether you use a module bundler or the <script> tag method.

Simply pass your Timber.io organization API + source keys as parameters to a new Timber instance (you can grab both from the Timber.io console):

const timber = new Timber("timber-organization-key", "timber-source-key");

Documentation

This browser library extends @timberio/core, which provides a simple API for logging, adding middleware and more.

Visit the relevant readme section for more info/how-to:

LICENSE

ISC

0.35.0

5 years ago

0.34.2

5 years ago

0.34.1

5 years ago

0.33.0

5 years ago

0.32.0

5 years ago

0.31.0

5 years ago

0.30.0

5 years ago

0.29.0

5 years ago

0.28.0

5 years ago

0.27.0

5 years ago

0.26.0

5 years ago

0.25.0

5 years ago

0.24.0

5 years ago

0.23.0

5 years ago

0.22.0

5 years ago

0.21.0

5 years ago

0.20.2

5 years ago

0.19.0

5 years ago

0.18.0

5 years ago

0.17.0

5 years ago

0.16.0

5 years ago

0.15.0

5 years ago

0.14.1

5 years ago

0.13.0

5 years ago

0.12.0

5 years ago

0.11.0

5 years ago

0.10.2

5 years ago