Comparing version 0.0.0 to 1.0.0
{ | ||
"name": "kuler", | ||
"version": "0.0.0", | ||
"version": "1.0.0", | ||
"description": "Color your terminal using CSS/hex color codes", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "mocha test.js" | ||
}, | ||
@@ -31,4 +31,8 @@ "repository": { | ||
"dependencies": { | ||
"colornames": "0.0.2" | ||
"colornames": "^1.1.1" | ||
}, | ||
"devDependencies": { | ||
"assume": "^2.0.1", | ||
"mocha": "^5.1.1" | ||
} | ||
} |
41
test.js
@@ -1,18 +0,27 @@ | ||
'use strict'; | ||
const { it, describe } = require('mocha'); | ||
const assume = require('assume'); | ||
const kuler = require('./'); | ||
var kuler = require('./'); | ||
describe('kuler', function () { | ||
it('renders colors in the terminal', function () { | ||
console.log(' VISUAL INSPECTION'); | ||
console.log(' '+ kuler('red').style('red')); | ||
console.log(' '+ kuler('black').style('#000')); | ||
console.log(' '+ kuler('white').style('#FFFFFF')); | ||
console.log(' '+ kuler('lime').style('AAFF5B')); | ||
console.log(' '+ kuler('violet').style('violetred 1')); | ||
console.log(' '+ kuler('purple').style('purple')); | ||
console.log(' '+ kuler('purple').style('purple'), 'correctly reset to normal color'); | ||
console.log(' '+ kuler('green', 'green')); | ||
}); | ||
console.log(''); | ||
console.log('visual inspection'); | ||
console.log(''); | ||
console.log(kuler('red').style('red')); | ||
console.log(kuler('black').style('#000')); | ||
console.log(kuler('white').style('#FFFFFF')); | ||
console.log(kuler('lime').style('AAFF5B')); | ||
console.log(kuler('violet').style('violetred 1')); | ||
console.log(kuler('purple').style('purple')); | ||
console.log(kuler('purple').style('purple'), 'correctly reset to normal color'); | ||
console.log(''); | ||
console.log('alternate api'); | ||
console.log(''); | ||
console.log(kuler('green', 'green')); | ||
it('supports color names and hex values', function () { | ||
assume(kuler('black', 'black')).equals(kuler('black', '#000')); | ||
}) | ||
describe('#style', function () { | ||
it('has a style method', function () { | ||
assume(kuler('what').style).is.a('function'); | ||
}); | ||
}); | ||
}); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5618
134
0
2
4
1
+ Addedcolornames@1.1.1(transitive)
- Removedcolornames@0.0.2(transitive)
Updatedcolornames@^1.1.1