Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@timberio/browser
Advanced tools
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:
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");
<script>
tagIf 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
.
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");
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:
FAQs
Timber.io browser logging
We found that @timberio/browser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.