Comparing version 1.0.2 to 1.0.3
@@ -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 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6439
6
118
1