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

is-hidden

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-hidden - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

license

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": {

33

readme.md

@@ -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
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