Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chalkie

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chalkie - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

10

chalkie.js
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
AnsiHTML = require('ansi-html');
Chalk = require('chalk');
Chalk.enabled = true;
Chalk.level = 2;
chalk = require('chalk');
chalk.enabled = true;
chalk.level = 2;
if (typeof module !== 'undefined') {
module.exports = Chalk;
module.exports.html = AnsiHTML;
module.exports = chalk;
module.exports.html = ansiHTML;
}

@@ -10,0 +10,0 @@

AnsiHTML = require('ansi-html');
Chalk = require('chalk');
Chalk.enabled = true;
Chalk.level = 2;
chalk = require('chalk');
chalk.enabled = true;
chalk.level = 2;
if (typeof module !== 'undefined') {
module.exports = Chalk;
module.exports.html = AnsiHTML;
module.exports = chalk;
module.exports.html = ansiHTML;
}
{
"name": "chalkie",
"version": "0.0.9",
"version": "0.0.10",
"main": "chalkie.js",

@@ -17,6 +17,7 @@ "author": "Shawn Presser <shawnpresser@gmail.com>",

"chalk",
"chalkjs",
"chalkie",
"xterm",
"xtermjs",
"ansi"
"ansi",
"ansihtml"
],

@@ -23,0 +24,0 @@ "scripts": {

@@ -20,5 +20,5 @@ # chalkie

Then use `Chalk` from anywhere in your code:
Then use `chalk` from anywhere in your code:
```
console.log(Chalk.red("foo"))
console.log(chalk.red("foo"))
```

@@ -28,3 +28,3 @@

```
document.body.innerHTML = AnsiHTML(Chalk.red("foo"));
document.body.innerHTML = ansiHTML(chalk.red("foo"));
```

@@ -38,13 +38,13 @@

<body>
<script src="https://unpkg.com/chalkie@latest/chalkie.js"></script>
<script src="https://unpkg.com/chalkie@latest"></script>
<!-- How to manually create HTML elements from Chalk strings -->
<!-- How to manually create HTML elements from chalk strings -->
<div id="code">
</div>
<script>
var html = AnsiHTML(Chalk.magenta.bold.italic.underline("Hello from HTML!"));
var html = ansiHTML(chalk.magenta.bold.italic.underline("Hello from HTML!"));
document.getElementById("code").innerHTML = html;
</script>
<!-- How to use Chalk with xterm.js -->
<!-- How to use chalk with xterm.js -->
<script src="https://unpkg.com/xterm@latest/dist/xterm.js"></script>

@@ -58,3 +58,3 @@ <link rel="stylesheet" href="https://unpkg.com/xterm@latest/dist/xterm.css" />

term.open(document.getElementById('terminal'));
term.write(`${Chalk.red("Hello")} from ${Chalk.bold.underline.bgCyanBright.black('xterm.js')} !`);
term.write(`${chalk.red("Hello")} from ${chalk.bold.underline.bgCyanBright.black('xterm.js')} !`);
</script>

@@ -61,0 +61,0 @@ </body>

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc