mirror of
https://github.com/idrainformatica/PecFlow.git
synced 2026-06-16 12:45:42 +02:00
fase 5
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 Tinylibs
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
# tinyrainbow
|
||||
|
||||
Output your colorful messages in the terminal or browser console that support ANSI colors (Chrome engines).
|
||||
|
||||
A small (`~ 6 kB` unpacked) fork of [picocolors](https://www.npmjs.com/package/picocolors) with support for `exports` field.
|
||||
|
||||
Supports only ESM.
|
||||
|
||||
## Installing
|
||||
|
||||
```bash
|
||||
# with npm
|
||||
$ npm install -D tinyrainbow
|
||||
|
||||
# with pnpm
|
||||
$ pnpm add -D tinyrainbow
|
||||
|
||||
# with yarn
|
||||
$ yarn add -D tinyrainbow
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import c from 'tinyrainbow'
|
||||
|
||||
console.log(c.red(c.bold('Hello World!')))
|
||||
```
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "tinyrainbow",
|
||||
"version": "1.2.0",
|
||||
"description": "A small library to print colourful messages.",
|
||||
"type": "module",
|
||||
"main": "./dist/node.js",
|
||||
"module": "./dist/browser.js",
|
||||
"browser": "./dist/browser.js",
|
||||
"types": "./dist/node.d.ts",
|
||||
"exports": {
|
||||
"types": "./dist/node.d.ts",
|
||||
"node": "./dist/node.js",
|
||||
"browser": "./dist/browser.js",
|
||||
"import": "./dist/browser.js",
|
||||
"default": "./dist/browser.js"
|
||||
},
|
||||
"files": [
|
||||
"dist/**"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tinylibs/tinyrainbow.git"
|
||||
},
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/tinylibs/tinyrainbow/issues"
|
||||
},
|
||||
"homepage": "https://github.com/tinylibs/tinyrainbow#readme",
|
||||
"keywords": [
|
||||
"colors",
|
||||
"tty"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user