
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.
Nebia is a lightweight logger library for JavaScript, with no dependencies and size of only 2kb.
Read this in other languages: English | 简体中文
[!IMPORTANT] Totte is a pure ESM package, if you encounter difficulties using it in your project, can read this.
npm install nebia
<script type="module">
import nebia from 'https://esm.sh/nebia';
</script>
or
<script type="importmap">
{
"imports": {
"nebia": "https://esm.sh/nebia"
}
}
</script>
<script type="module">
import nebia from 'nebia';
</script>
You can also use other CDNs according to your preferences, such as jsDelivr and UNPKG etc.
import logger from 'nebia';
logger.info('hello world');
[1970-01-01T00:00:00.000Z] [INFO] - hello world
You can also use Logger or createLogger to generate new instance:
import { createLogger } from 'nebia';
const logger = createLogger();
logger.setName('name');
logger.setLevel('info');
logger.info('hello world');
logger.debug('goodbye universe');
import { Logger } from 'nebia';
const logger = new Logger({
name: 'app',
level: 'debug',
});
logger.info('hello world');
logger.debug('goodbye universe');
[1970-01-01T00:00:00.000Z] [INFO] app - hello world
[9999-12-31T23:59:59.999Z] [INFO] app - goodbye universe
enum LogLevel {
fatal,
error,
warn,
info,
debug,
trace,
}
type Level = keyof typeof LogLevel;
interface LogConfig {
// default 'info'
level: Level;
name: string;
}
FAQs
A lightweight logger library for JavaScript
The npm package nebia receives a total of 2 weekly downloads. As such, nebia popularity was classified as not popular.
We found that nebia demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
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.