# is-code

> Check if a filename looks like something pygments can parse

Latest version **1.1.0** (published 2013-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-code
pnpm add is-code
yarn add is-code
bun add is-code
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2013-07-09 |
| First published | 2013-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | tjholowaychuk |

## Links

- npm: https://www.npmjs.com/package/is-code
- npm.io page: https://npm.io/package/is-code

## Recent versions

- 1.1.0 (latest) — 2013-07-09
- 1.0.2 — 2013-05-31
- 1.0.1 — 2013-05-06
- 1.0.0 — 2013-04-30
- 0.0.1 — 2013-04-23

## README

# is-code

  Check if a given path looks like code (that can be parsed by pygments).

## API

### isCode(path)

```js
var isCode = require('is-code');

var lang = isCode('path/to/Makefile');

{ names: [ 'make', 'makefile', 'mf', 'bsdmake' ],
  regexps:
   [ /^.+\.mak$/,
     /^Makefile$/,
     /^makefile$/,
     /^Makefile\..+$/,
     /^GNUmakefile$/ ] }
```

## License

  MIT

---
_Source: https://npm.io/package/is-code · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
