Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aeyoll/imperial-stdout
Your essential wrapper for console.log
https://github.com/aeyoll/imperial-stdout
Last synced: 3 days ago
JSON representation
Your essential wrapper for console.log
- Host: GitHub
- URL: https://github.com/aeyoll/imperial-stdout
- Owner: aeyoll
- License: mit
- Created: 2023-05-10T17:17:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-10T17:41:14.000Z (over 1 year ago)
- Last Synced: 2024-12-02T16:29:02.209Z (21 days ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Imperial stdout
Your essential wrapper for console.log for the browser and node.js
## Installing
### Package manager
Using npm:
```bash
$ npm install imperial-stdout
```Using yarn:
```bash
$ yarn add imperial-stdout
```Using pnpm:
```bash
$ pnpm add imperial-stdout
```## Example
Once the package is installed, you can import the library using `import` or `require` approach:
```js
import imperialStdout from 'imperial-stdout';
imperialStdout('something');
```If you use `require` for importing:
```js
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:```js
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](https://github.com/JEDacreWright) for this fantastic play on word.
## Is it a joke?
You bet.