Home

Awesome

weasels

Build Coverage Downloads Size

List of many English, both British and American, weasel words.

Contents

What is this?

This package exposes a list of weasel words.

When should I use this?

Use this when you want to do fun things with natural language.

Install

This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:

npm install weasels

In Deno with esm.sh:

import {weasels} from 'https://esm.sh/weasels@2'

In browsers with esm.sh:

<script type="module">
  import {weasels} from 'https://esm.sh/weasels@2?bundle'
</script>

Use

import {weasels} from 'weasels'

console.log(weasels.length) //=> 116

console.log(weasels.slice(0, 10))

Yields:

[ 'a lot',
  'about',
  'acts',
  'again',
  'all',
  'almost',
  'already',
  'also',
  'anyway',
  'appeared' ]

API

This package exports the identifier weasels. There is no default export.

weasels

Reportedly, weasels exposes a list of strings (Array<string>).

Data

weasels supports several weasel words and phrases. For a complete list, see data.txt.

šŸ‘‰ Note: that the words listed in weasels might or, in fact, might not be weasels.

Types

This package is fully typed with TypeScript. It exports no additional types.

Compatibility

This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers.

Related

Contribute

Yes please! See How to Contribute to Open Source.

Security

This package is safe.

License

MIT Ā© Titus Wormer

<!-- Definitions -->