Skip to content

sindresorhus/one-thing

Repository files navigation

one-thing

Set the text for the One Thing app

Requires Node.js 12 and the One Thing app to be installed.

CLI

npm install --global one-thing
$ one-thing --help

  Usage
    $ one-thing <text>
    $ one-thing --get

  Example
    $ one-thing 'Prepare for important meeting'

API

npm install one-thing
import oneThing, {getOneThing} from 'one-thing';

await oneThing('Prepare for important meeting');

console.log(await getOneThing());
//=> 'Prepare for important meeting'