https://github.com/abdultolba/meditations
Retrieve random or specific phrases from Marcus Aurelius' meditations.
https://github.com/abdultolba/meditations
npm npm-package stoic stoicism
Last synced: 2 months ago
JSON representation
Retrieve random or specific phrases from Marcus Aurelius' meditations.
- Host: GitHub
- URL: https://github.com/abdultolba/meditations
- Owner: abdultolba
- License: mit
- Created: 2020-10-29T16:29:11.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-30T15:35:59.000Z (about 4 years ago)
- Last Synced: 2025-03-11T23:36:23.900Z (3 months ago)
- Topics: npm, npm-package, stoic, stoicism
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/meditations
- Size: 127 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# meditations
Retrieve random or specific phrases from Marcus Aurelius' meditations.[![Contributors][contributors-shield]][contributors-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![LinkedIn][linkedin-shield]][linkedin-url]## Usage
#### Use module in a JavaScript/Node.js application
- To install this package, save it as a dependency using npm:
```bash
$ npm install --save meditations
```
- Require the module in your application:
```javascript
const meditations = require('meditations');
```- Retrieve a random quote
```javascript
const meditations = require('meditations');meditations.random();
// "All that is from the... and from thy heart thankful to the gods. "
```- Retrieve a specific quote
```javascript
const meditations = require('meditations');meditations.retrieve(1,3); // Retrieves Meditations [1:3]
// "From my mother, piety and beneficence, and abstinence, not only from
// evil deeds, but even from evil thoughts; and further, simplicity in
// my way of living, far removed from the habits of the rich."
```## License
Distributed under the MIT License. See `LICENSE` for more information.
[contributors-shield]: https://img.shields.io/github/contributors/abdultolba/meditations.svg?style=for-the-badge
[contributors-url]: https://github.com/abdultolba/meditations/graphs/contributors[stars-shield]: https://img.shields.io/github/stars/abdultolba/meditations.svg?style=for-the-badge
[stars-url]: https://github.com/abdultolba/meditations/stargazers[issues-shield]: https://img.shields.io/github/issues/abdultolba/meditations.svg?style=for-the-badge
[issues-url]: https://github.com/abdultolba/meditations/issues[license-shield]: https://img.shields.io/github/license/abdultolba/meditations.svg?style=for-the-badge
[license-url]: https://github.com/abdultolba/goodbooks/blob/main/LICENSE[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/abdultolba