Socket
Socket
Sign inDemoInstall

vfile-statistics

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vfile-statistics - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

license

6

index.js

@@ -5,3 +5,3 @@ 'use strict'

/* Get stats for a file, list of files, or list of messages. */
// Get stats for a file, list of files, or list of messages.
function statistics(files) {

@@ -23,6 +23,6 @@ var result = {true: 0, false: 0, null: 0}

if (value[0] && value[0].messages) {
/* Multiple vfiles */
// Multiple vfiles
countInAll(value)
} else {
/* One vfile / messages */
// One vfile / messages
countAll(value.messages || value)

@@ -29,0 +29,0 @@ }

{
"name": "vfile-statistics",
"version": "1.1.1",
"version": "1.1.2",
"description": "Count vfile messages per category",

@@ -14,5 +14,5 @@ "license": "MIT",

"bugs": "https://github.com/vfile/vfile-statistics/issues",
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)",
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)",
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"Brendan Abbott <brendan.abbott@temando.com>"

@@ -26,15 +26,15 @@ ],

"browserify": "^16.0.0",
"esmangle": "^1.0.1",
"nyc": "^11.0.0",
"nyc": "^13.0.0",
"prettier": "^1.12.1",
"remark-cli": "^5.0.0",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^4.0.0",
"tape": "^4.0.0",
"vfile": "^2.0.0",
"xo": "^0.20.0"
"tinyify": "^2.4.3",
"vfile": "^3.0.0",
"xo": "^0.23.0"
},
"scripts": {
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix",
"build-bundle": "browserify index.js --bare -s vfileStatistics > vfile-statistics.js",
"build-mangle": "esmangle vfile-statistics.js > vfile-statistics.min.js",
"build-bundle": "browserify . -s vfileStatistics > vfile-statistics.js",
"build-mangle": "browserify . -s vfileStatistics -p tinyify > vfile-statistics.min.js",
"build": "npm run build-bundle && npm run build-mangle",

@@ -41,0 +41,0 @@ "test-api": "node test",

@@ -1,3 +0,8 @@

# vfile-statistics [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
# vfile-statistics
[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
[![Chat][chat-badge]][chat]
Count [vfile][] messages per category (fatal, warn, info, nonfatal and total).

@@ -69,15 +74,23 @@

[travis-badge]: https://img.shields.io/travis/vfile/vfile-statistics.svg
[build-badge]: https://img.shields.io/travis/vfile/vfile-statistics.svg
[travis]: https://travis-ci.org/vfile/vfile-statistics
[build]: https://travis-ci.org/vfile/vfile-statistics
[codecov-badge]: https://img.shields.io/codecov/c/github/vfile/vfile-statistics.svg
[coverage-badge]: https://img.shields.io/codecov/c/github/vfile/vfile-statistics.svg
[codecov]: https://codecov.io/github/vfile/vfile-statistics
[coverage]: https://codecov.io/github/vfile/vfile-statistics
[downloads-badge]: https://img.shields.io/npm/dm/vfile-statistics.svg
[downloads]: https://www.npmjs.com/package/vfile-statistics
[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg
[chat]: https://spectrum.chat/unified/vfile
[npm]: https://docs.npmjs.com/cli/install
[license]: LICENSE
[license]: license
[author]: http://wooorm.com
[author]: https://wooorm.com

@@ -84,0 +97,0 @@ [vfile]: https://github.com/vfile/vfile

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