0.1.1 • Published 1 year ago

imperial-stdout v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Imperial stdout

Your essential wrapper for console.log for the browser and node.js

Installing

Package manager

Using npm:

$ npm install imperial-stdout

Using yarn:

$ yarn add imperial-stdout

Using pnpm:

$ pnpm add imperial-stdout

Example

Once the package is installed, you can import the library using import or require approach:

import imperialStdout from 'imperial-stdout';
imperialStdout('something');

If you use require for importing:

const imperialStdout = require('imperial-stdout');
imperialStdout('something');

For cases where something went wrong when trying to import a module into a custom or legacy environment, you can try importing the module package directly:

const imperialStdout = require('imperial-stdout/dist/browser/imperial-stdout.cjs'); // browser commonJS bundle (ES2017)
// const imperialStdout = require('imperial-stdout/dist/node/imperial-stdout.cjs'); // node commonJS bundle (ES2017)

Credits

Thanks to @JEDacreWright for this fantastic play on word.

Is it a joke?

You bet.

0.1.1

1 year ago

0.1.0

1 year ago