Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

nodesplash

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodesplash

🌊 port of qdm12/gosplash to TypeScript

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
88
-49.43%
Maintainers
1
Weekly downloads
 
Created
Source

🌊 NodeSplash codecov

Library to show log lines at the start of a program.

Direct port of qdm12's excellent GoSplash library.

For example, this

import {makeLines} from "nodesplash";

console.log(makeLines({
    separator: '=',
    user: 'codetheweb',
    repository: 'nodesplash',
    emails: ['hi@maxisom.me'],
    version: 'v1.1.1',
    commit: 'c892ef2',
    buildDate: new Date('7/13/2021'),
    paypalUser: 'codetheweb',
    githubSponsor: 'codetheweb'
}).join('\n'));

will result in this:

========================================
========================================
============== nodesplash ==============
========================================
=========== Made with ❤️ by ============
==== https://github.com/codetheweb =====
========================================
========================================

Running version v1.1.1 built on 7/13/2021 (commit c892ef2)

🔧 Need help? https://github.com/codetheweb/nodesplash/discussions/new
🐛 Bug? https://github.com/codetheweb/nodesplash/issues/new
✨ New feature? https://github.com/codetheweb/nodesplash/issues/new
☕ Discussion? https://github.com/codetheweb/nodesplash/discussions/new
💻 Email? hi@maxisom.me
💰 Help me? https://www.paypal.me/codetheweb https://github.com/sponsors/codetheweb

Usage

yarn add nodesplash or npm i nodesplash -s. Then:

  • const {makeLines} = require('nodesplash') for JavaScript or
  • import {makeLines} from 'nodesplash' for TypeScript.

All settings:

interface Settings {
  // Formatting settings
  lineLength?: number;   // defaults to 40
  separator?: string;    // defaults to '='
  madeByPrefix?: string; // defaults to 'Made with ❤️ by '

  // Project information
  rootURL?: string;   // defaults to https://github.com
  user?: string;
  repository?: string;
  authors?: string[]; // defaults to `${rootURL}/${user}`
  emails?: string[];

  // Program information
  version?: string;   // defaults to 'unknown'
  commit?: string;    // defaults to 'unknown'
  buildDate?: Date;   // defaults to 'unknown date'
  announcement?: string;
  announceExp?: Date; // don't include to disable expiration

  // Sponsor information
  paypalUser?: string;
  githubSponsor?: string;
}

Keywords

🌊

FAQs

Package last updated on 14 Dec 2021

Did you know?

Socket

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.

Install

Related posts