Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 1 month 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-27T00:25:11.000Z (over 1 year ago)
- Last Synced: 2024-04-13T17:55:19.249Z (7 months 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: 130
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
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 --helpUsage
$ one-thing
$ one-thing --getExample
$ 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'
```