negate-sentence

0.2.0 • Public • Published

negate-sentence

npm build

Negate Sentence

Table of Contents

Background

It takes a sentence, e.g. is positive and returns the negation is not positive. It's based on simple string manipulation, nothing fancy, it wasn't tested on more complex sentences. It was created to remove some repetition in a template engine.

Install

npm install negate-sentence

Usage

const negate = require('negate-sentence')
const sentence = negate('is negative')
console.log(sentence) // 'is not negative'

Maintainers

@emilos.

Contributing

Please feel free to send PRs that improve the lib.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i negate-sentence

Weekly Downloads

7

Version

0.2.0

License

MIT

Unpacked Size

8.59 kB

Total Files

5

Last publish

Collaborators

  • buxlabs-dev
  • emilos
  • pkonieczniak