god-bless-your-code
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

god-bless-your-code

npm version npm downloads codecov License

Bless your code with ASCII gods, monsters, and mystical powers — your last line of defense against bugs and angry PMs.

[!IMPORTANT] This plugin does not actually prevent bugs — use at your own (spiritual) discretion.

Features

  • 🧘 Add ASCII blessings (Buddha, dragons, magical charms...) into your code
  • 🎯 Works as a utility or plugin — compatible with Rollup, Vite, Bun, and more
  • 🎲 Random or fixed selection of blessing arts
  • ✨ Choose blessing placement: top or bottom of the output
  • 🛡️ For spiritual protection only. No guarantees against bugs or cursed deadlines

Requirements

  • Node.js >= 18.12.1

Installation

Using pnpm:

pnpm add -D god-bless-your-code

You can also use yarn, npm, or bun.

Usage

Bun

Coming soon.

Rollup

Here's an example usage in your rollup.config.mjs file:

import { godBlessYourCode } from 'god-bless-your-code/rollup';
import { defineConfig } from 'rollup';

export default defineConfig({
    input: './src/index.ts',
    output: [
        {
            file: './dist/index.cjs',
            format: 'cjs',
            plugins: [godBlessYourCode()],
        },
        {
            file: './dist/index.mjs',
            format: 'esm',
            plugins: [godBlessYourCode()],
        },
    ],
});

[!IMPORTANT] This is an output plugin. Make sure it's placed in the output.plugins array.

You can also import it as follows:

import {
    bless,
    god,
    godBless,
} from 'god-bless-your-code/rollup';

Vite

Here's an example usage in your vite.config.ts file:

import vue from '@vitejs/plugin-vue';
import { godBlessYourCode } from 'god-bless-your-code/vite';
import { defineConfig } from 'vite';

export default defineConfig({
    plugins: [
        vue(),
        godBlessYourCode(),
    ],
});

You can also import it as follows:

import {
    bless,
    god,
    godBless,
} from 'god-bless-your-code/vite';

[!NOTE] In order not to make the total size of the output too large, a maximum of three files are processed by default.

This can be adjusted with options.maxFiles.

Available Blessings

Blessing names map to .txt files in ./src/blessing-texts.

  • alpaca
  • buddha-normal
  • buddha-with-poetry
  • cat
  • dragon
  • gopher
  • guāiguāi

Blessing sources:

Feel free to submit more blessing texts!

License

MIT License

Package Sidebar

Install

npm i god-bless-your-code

Weekly Downloads

8

Version

0.5.0

License

MIT

Unpacked Size

113 kB

Total Files

55

Last publish

Collaborators

  • kiki-kanri