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: 8 months ago
JSON representation
Set the text for the One Thing app
- Host: GitHub
- URL: https://github.com/sindresorhus/one-thing
- Owner: sindresorhus
- License: mit
- Created: 2022-01-16T09:19:52.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-27T00:25:11.000Z (almost 3 years ago)
- Last Synced: 2025-01-28T19:30:14.554Z (over 1 year ago)
- Topics: cli-app, command-line-tool, macos, nodejs, npm-package, one-thing
- Language: JavaScript
- Homepage: https://sindresorhus.com/one-thing
- Size: 26.4 KB
- Stars: 140
- Watchers: 6
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
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'
```