light-tm

1.2.2 • Public • Published

LightTM

Things ain't real before they are profitable and trademarked.

We live in a world where truth shall be revealed only at the stock exchanges.

This is a helper utility to prevent any unprofitable usage of trending vocubalary.

Besides being able to shield the usage of words until proper investors are found, it has the ability to easily mark the words as trademarked once a sustainable profit model has been agreed upon by all stakeholders.

Reserve word to be registered:

lightTM.word = 'Light'

To start shielding words use:

lightTm(str)

This will blackout all usages of the choosen word.

Once a profitable model is found and we are pretty much sure we own the concept. You can flag the word as registered.

lightTM.isRegistered = true

By default the truemark is set to ™, to change this use:

lightTM.truemark = '®'

To set the falsemark to something different than ▓ use:

lightTM.falsemark = '-'

Unregistered Example:

const lightTM = require('./index')
const str = 'In the beginning there was Light'
lightTM.isRegistered = false
console.log(lightTM(str))

Result:

In the beginning there was ▓▓▓▓▓

Registered Example:

const lightTM = require('./index')
const str = 'In the beginning there was Light'
lightTM.isRegistered = true
console.log(lightTM(str))

Result:

In the beginning there was Light™

Note: If input is an object LightTM will automatically replace each and every string value for you.

To install:

npm i light-tm --save

To run the tests

npm test

Readme

Keywords

none

Package Sidebar

Install

npm i light-tm

Weekly Downloads

1

Version

1.2.2

License

ISC

Last publish

Collaborators

  • rhalff