Comparing version 1.1.1 to 1.1.2
10
index.js
@@ -1,13 +0,11 @@ | ||
'use strict'; | ||
'use strict' | ||
/* Expose. */ | ||
module.exports = hidden; | ||
module.exports = hidden | ||
/* Check if `filename` is hidden (starts with a dot). */ | ||
function hidden(filename) { | ||
if (typeof filename !== 'string') { | ||
throw new Error('Expected string'); | ||
throw new Error('Expected string') | ||
} | ||
return filename.charAt(0) === '.'; | ||
return filename.charAt(0) === '.' | ||
} |
{ | ||
"name": "is-hidden", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Check if `filename` is hidden (starts with a dot)", | ||
@@ -16,5 +16,5 @@ "license": "MIT", | ||
"bugs": "https://github.com/wooorm/is-hidden/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)" | ||
], | ||
@@ -26,22 +26,30 @@ "files": [ | ||
"devDependencies": { | ||
"browserify": "^14.0.0", | ||
"esmangle": "^1.0.0", | ||
"nyc": "^11.0.0", | ||
"remark-cli": "^4.0.0", | ||
"remark-preset-wooorm": "^3.0.0", | ||
"browserify": "^16.0.0", | ||
"nyc": "^14.0.0", | ||
"prettier": "^1.12.1", | ||
"remark-cli": "^6.0.0", | ||
"remark-preset-wooorm": "^4.0.0", | ||
"tape": "^4.6.2", | ||
"xo": "^0.18.0" | ||
"tinyify": "^2.5.0", | ||
"xo": "^0.24.0" | ||
}, | ||
"scripts": { | ||
"build-md": "remark . -qfo", | ||
"build-bundle": "browserify index.js --bare -s isHidden > is-hidden.js", | ||
"build-mangle": "esmangle < is-hidden.js > is-hidden.min.js", | ||
"build": "npm run build-md && npm run build-bundle && npm run build-mangle", | ||
"lint": "xo", | ||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix", | ||
"build-bundle": "browserify . -s isHidden -o is-hidden.js", | ||
"build-mangle": "browserify . -s isHidden -p tinyify -o is-hidden.js", | ||
"build": "npm run build-bundle && npm run build-mangle", | ||
"test-api": "node test", | ||
"test-coverage": "nyc --reporter lcov tape test.js", | ||
"test": "npm run build && npm run lint && npm run test-coverage" | ||
"test": "npm run format && npm run build && npm run test-coverage" | ||
}, | ||
"prettier": { | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"singleQuote": true, | ||
"bracketSpacing": false, | ||
"semi": false, | ||
"trailingComma": "none" | ||
}, | ||
"xo": { | ||
"space": true, | ||
"prettier": true, | ||
"esnext": false, | ||
@@ -48,0 +56,0 @@ "rules": { |
@@ -1,3 +0,8 @@ | ||
# is-hidden [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov] | ||
# is-hidden | ||
[![Build][build-badge]][build] | ||
[![Coverage][coverage-badge]][coverage] | ||
[![Downloads][downloads-badge]][downloads] | ||
[![Size][size-badge]][size] | ||
Check if `filename` is hidden (starts with a dot). | ||
@@ -16,6 +21,6 @@ | ||
```javascript | ||
var hidden = require('is-hidden'); | ||
var hidden = require('is-hidden') | ||
hidden('.git'); //=> true | ||
hidden('readme.md'); //=> false | ||
hidden('.git') // => true | ||
hidden('readme.md') // => false | ||
``` | ||
@@ -35,14 +40,22 @@ | ||
[travis-badge]: https://img.shields.io/travis/wooorm/is-hidden.svg | ||
[build-badge]: https://img.shields.io/travis/wooorm/is-hidden.svg | ||
[travis]: https://travis-ci.org/wooorm/is-hidden | ||
[build]: https://travis-ci.org/wooorm/is-hidden | ||
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/is-hidden.svg | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/is-hidden.svg | ||
[codecov]: https://codecov.io/github/wooorm/is-hidden | ||
[coverage]: https://codecov.io/github/wooorm/is-hidden | ||
[downloads-badge]: https://img.shields.io/npm/dm/is-hidden.svg | ||
[downloads]: https://www.npmjs.com/package/is-hidden | ||
[size-badge]: https://img.shields.io/bundlephobia/minzip/is-hidden.svg | ||
[size]: https://bundlephobia.com/result?p=is-hidden | ||
[npm]: https://docs.npmjs.com/cli/install | ||
[license]: LICENSE | ||
[license]: license | ||
[author]: http://wooorm.com | ||
[author]: https://wooorm.com |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
4163
60
8
8