Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sindresorhus/one-thing

Set the text for the One Thing app
https://github.com/sindresorhus/one-thing

cli-app command-line-tool macos nodejs npm-package one-thing

Last synced: about 2 months ago
JSON representation

Set the text for the One Thing app

Awesome Lists containing this project

README

        

# one-thing

> Set the text for the [One Thing](https://sindresorhus.com/one-thing) app

**Requires [Node.js 12](https://nodejs.org) and the [One Thing](https://sindresorhus.com/one-thing) app to be installed.**

## CLI

```sh
npm install --global one-thing
```

```
$ one-thing --help

Usage
$ one-thing
$ one-thing --get

Example
$ one-thing 'Prepare for important meeting'
```

## API

```sh
npm install one-thing
```

```js
import oneThing, {getOneThing} from 'one-thing';

await oneThing('Prepare for important meeting');

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