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

cfonts

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cfonts - npm Package Compare versions

Comparing version 1.2.0 to 2.0.0

bin/index.js

38

package.json
{
"name": "cfonts",
"description": "Sexy fonts for the console",
"version": "1.2.0",
"version": "2.0.0",
"homepage": "https://github.com/dominikwilkowski/cfonts",

@@ -33,7 +33,10 @@ "author": {

"scripts": {
"prepublish": "npm run build",
"test": "node ./test/fonttest.js",
"prepublish": "npm run build && npm run test",
"test": "npm run build && npm run test:unit && npm run test:fonts",
"test:fonts": "node ./test/fonttest.js",
"test:watch": "jest --watchAll --coverage",
"test:unit": "jest",
"build": "npm run build:bin & npm run build:lib",
"build:bin": "mkdir bin && babel src/bin.js --out-file bin/font.js --presets=es2015 --plugins transform-runtime",
"build:lib": "babel src/lib.js --out-file index.js --presets=es2015 --plugins transform-runtime",
"build:bin": "mkdir -p bin && babel src/bin.js --out-file bin/index.js --presets=es2015 --plugins transform-runtime",
"build:lib": "mkdir -p lib && babel src/lib.js --out-file lib/index.js --presets=es2015 --plugins transform-runtime",
"watch": "npm run build && onchange 'src/**/*' -- npm run build"

@@ -45,5 +48,3 @@ },

"babel-preset-es2015": "^6.22.0",
"grunt": "~1.0.1",
"grunt-contrib-jshint": "^1.0.0",
"grunt-exec": "^3.0.0",
"jest-cli": "^22.4.3",
"onchange": "^3.2.1"

@@ -60,2 +61,17 @@ },

},
"jest": {
"testEnvironment": "node",
"testRegex": "\\.spec.js$",
"collectCoverageFrom": [
"src/*.js"
],
"coverageThreshold": {
"global": {
"branches": 0,
"functions": 0,
"lines": 0,
"statements": 0
}
}
},
"keywords": [

@@ -71,11 +87,11 @@ "font",

"files": [
"index.js",
"lib/*",
"bin/*",
"fonts/*"
],
"main": "index.js",
"main": "lib/index.js",
"bin": {
"cfonts": "./bin/font.js"
"cfonts": "./bin/index.js"
},
"license": "GNU-GPLv2"
}

@@ -352,8 +352,16 @@ ```shell

## Test
The package comes with a testing tool for the font json format. Run the test with:
The package comes with a bunch of unit tests and a test suite for font files.
Run the unit tests via:
```shell
npm test
npm test:unit
```
Run the font test suite via:
```shell
npm test:fonts
```
This tool checks:

@@ -367,4 +375,11 @@ - the existence

Or run all tests via:
```shell
npm run test
```
## Release History
* 2.0.0 - Added tests, split into more pure functions
* 1.2.0 - Added `transparent` and `system` as default background and color option, added `backgroundColor` as alias for `background`, upgraded deps

@@ -371,0 +386,0 @@ * 1.1.3 - Fixed help text, removing old -t option

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