npm.io
1.1.1 • Published 3 years ago

@blackglory/pass

Licence
MIT
Version
1.1.1
Deps
0
Size
5 kB
Vulns
0
Weekly
0

pass

The dead simple pass statement from Python.

Install

npm install --save @blackglory/pass
# or
yarn add @blackglory/pass

Usage

import { pass } from '@blackglory/pass'

try {
  // ...
} catch {
  pass()
}

Why?

Sometimes you just want to write an empty statement or empty block, but the linter does not allow you to do this.

You don't want to write comments to bypass the linter, because that looks terrible.

API

pass
function pass(): void
passAsync
function passAsync(): Promise<void>