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

charlike-cli

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

charlike-cli - npm Package Compare versions

Comparing version 0.2.5 to 0.3.0

12

cli.js

@@ -12,5 +12,7 @@ #!/usr/bin/env node

const fs = require('fs')
const pkg = require('./package.json')
const charlike = require('charlike')
const username = require('git-user-name')
const updateNotifier = require('update-notifier')
const cli = require('minimist')(process.argv.slice(2), {

@@ -30,2 +32,10 @@ alias: {

const getCharlikeVersion = () => {
const filepath = require.resolve('charlike/package.json')
const charlikePkg = JSON.parse(fs.readFileSync(filepath, 'utf-8'))
return charlikePkg.version
}
updateNotifier({ pkg: pkg }).notify()
process.title = pkg.bin ? Object.keys(pkg.bin)[0] : pkg.name

@@ -42,2 +52,3 @@

(${pkg.name} v${pkg.version})
(charlike v${getCharlikeVersion()})

@@ -73,2 +84,3 @@ Usage

console.log(`${pkg.name} v${pkg.version}`)
console.log(`charlike v${getCharlikeVersion()}`)
process.exit(0) // eslint-disable-line no-process-exit

@@ -75,0 +87,0 @@ }

79

package.json
{
"name": "charlike-cli",
"version": "0.2.5",
"version": "0.3.0",
"description": "Command line interface for the [charlike][] project scaffolder.",
"repository": "tunnckoCore/charlike-cli",
"author": "Charlike Mike Reagent <@tunnckoCore> (http://i.am.charlike.online)",
"precommit.silent": true,
"main": "cli.js",
"license": "MIT",
"scripts": {
"lint": "standard --verbose",
"pretest": "npm run lint",
"test": "npm run coverage",
"posttest": "npm run lint:coverage",
"coverage": "nyc node test.js",
"lint:coverage": "nyc check-coverage --lines 0 --branches 0 --statements 0 --functions 0",
"report-coverage": "nyc report --reporter=text-lcov | coveralls",
"prerelease": "npm test",
"release": "standard-version --sign --no-verify",
"precommit": "git add --all",
"commit": "git-cz"
"deps": "dependency-check . --missing",
"secure": "nsp check",
"lint": "eslint --fix ./*.js",
"test": "nyc --reporter lcov node test.js",
"report": "nyc report",
"git": "npm-run-all --silent -s git:*",
"git:add": "git add --all",
"git:cz": "simple-commit-message",
"git:push": "git push",
"commit": "npm-run-all --silent -s deps secure lint test git",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"setup": "semantic-release-cli setup"
},
"dependencies": {
"charlike": "*",
"git-user-name": "^1.2.0",
"minimist": "^1.2.0"
"git-user-name": "1.2.0",
"minimist": "1.2.0",
"update-notifier": "2.2.0"
},
"devDependencies": {
"commitizen": "^2.8.6",
"coveralls": "^2.11.15",
"cz-conventional-changelog": "^1.2.0",
"mukla": "^0.4.8",
"nyc": "^10.0.0",
"pre-commit": "^1.2.0",
"standard": "^8.6.0",
"standard-version": "^4.0.0"
"dependency-check": "2.9.1",
"eslint": "4.2.0",
"github-post-release": "1.7.2",
"mukla": "0.4.9",
"npm-run-all": "4.0.2",
"nsp": "2.6.3",
"nyc": "11.1.0",
"pre-commit": "1.2.2",
"semantic-release": "^6.3.6",
"simple-commit-message": "3.2.0",
"standard": "10.0.2"
},

@@ -42,7 +46,2 @@ "files": [

"keywords": [],
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"verb": {

@@ -91,4 +90,24 @@ "run": true,

"node": ">=4",
"npm": ">=2"
"npm": ">=3"
},
"nyc": {
"check-coverage": true,
"statements": 0,
"functions": 0,
"branches": 0,
"lines": 0
},
"release": {
"analyzeCommits": "simple-commit-message",
"generateNotes": "github-post-release"
},
"pre-commit": {
"silent": true,
"run": [
"deps",
"secure",
"lint",
"test"
]
}
}
}
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