Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ora

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ora - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

10

index.js

@@ -8,2 +8,12 @@ 'use strict';

function Ora(options) {
if (!(this instanceof Ora)) {
return new Ora(options);
}
if (typeof options === 'string') {
options = {
text: options
};
}
this.options = objectAssign({

@@ -10,0 +20,0 @@ text: '',

2

package.json
{
"name": "ora",
"version": "0.1.1",
"version": "0.2.0",
"description": "Elegant terminal spinner",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -18,5 +18,5 @@ # ora [![Build Status](https://travis-ci.org/sindresorhus/ora.svg?branch=master)](https://travis-ci.org/sindresorhus/ora)

```js
const Ora = require('ora');
const ora = require('ora');
const spinner = new Ora({text: 'Loading unicorns'});
const spinner = ora('Loading unicorns');

@@ -36,6 +36,10 @@ spinner.start();

### Ora([options])
### ora([options|text])
If a string is provided, it is treated as a shortcut for [`options.text`](#text).
#### options
Type: `object`
##### text

@@ -42,0 +46,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc