New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

smallchalk

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smallchalk - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

src/defaultStyles.js

2

index.js

@@ -1,1 +0,1 @@

module.exports = require('./src/SmallChalk');
module.exports = require('./src/smallchalk');
{
"name": "smallchalk",
"version": "1.0.2",
"version": "1.0.3",
"description": "Like Chalk.js, but smaller and with fewer features",

@@ -17,3 +17,6 @@ "main": "index.js",

"smallchalk",
"small-chalk"
"small-chalk",
"console color",
"color text",
"colorsjs"
],

@@ -20,0 +23,0 @@ "author": "Matt Oestreich",

[![npm version](https://badge.fury.io/js/smallchalk.svg)](https://badge.fury.io/js/smallchalk)
# SmallChalk
Core functionality like Chalk.js but with fewer features. Meant for rapid prototyping without worrying about package.json bloat.
`npm i smallchalk` / `yarn add smallchalk`
- #### Small
- [coming in at only **819B gzipped & minified**!](https://bundlephobia.com/result?p=smallchalk@1.0.0)
# smallchalk
Core functionality like [Chalk.js](https://www.npmjs.com/package/chalk) but with fewer features. Meant for rapid prototyping without worrying about package.json bloat.
- #### Simple
- self contained, **with *ZERO* dependencies**!
- **Small**: [coming in at only **810B gzipped & minified**!](https://bundlephobia.com/result?p=smallchalk)
- **Simple**: self contained, **with *ZERO* dependencies**!
# Installation
# Details
```
npm i smallchalk
```
- Chain methods/getters like in Chalk.js:
or
```javascript
const smChalk = require('smallchalk');
smChalk.bgRed.black.bold.underline("Lorem ipsum dolor sit amet");
```
yarn add smallchalk
```
# Example
- The last color in the chain is what gets used:
You can chain methods/getters just like you can in Chalk.js:
```javascript
const smallChalk = require('smallchalk');
// This line..
smChalk.red.green.blue.bgRed.bgBlack.bgYellow("Lorem ipsum dolor sit amet");
// ...is equivalent to this line
smChalk.blue.bgYellow("Lorem ipsum dolor sit amet");
const message = smallChalk.bgRed.black.bold.underline("Lorem ipsum dolor sit amet");
console.log(message);
// This line..
smChalk.red.blue("Lorem ipsum dolor sit amet");
// ...is equivalent to this line
smChalk.blue("Lorem ipsum dolor sit amet");
```

@@ -35,0 +35,0 @@

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