consent-lex

1.2.0 • Public • Published

consent-lex

A lexicon for giving or declining consent (yes and no)

This module can be used as both a function and via the command line

As a module it exports a Lexicon instance using the package Lemme lex

Supported languages

  • English (British)
  • Japanese (Fork and commit if you would like to contribute to the list)

Installation

NPM

    npm i --save consent-lex

Yarn

    yarn add consent-lex

CLI

  npm i -g salutation-lex

Usage

Code

const ConsentLex = require('consent-lex');
let lex = new ConsentLex();
console.log(lex); // Will output class instance using lemme-lex

CLI

  consent-lex --locale=en_GB

(Will output lexicon as text file called consent.txt)

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i consent-lex

    Weekly Downloads

    2

    Version

    1.2.0

    License

    ISC

    Unpacked Size

    4.36 kB

    Total Files

    8

    Last publish

    Collaborators

    • truemedia