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

dual-api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dual-api - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

.eslintrc.json

2

bower.json
{
"name": "dual-api",
"version": "0.0.1",
"version": "0.0.2",
"description": "Make your module implement dual APIs, callback API and thenable (Promise) API.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -5,3 +5,3 @@ /*

*
* Copyright (c) 2016 anseki
* Copyright (c) 2017 anseki
* Licensed under the MIT license.

@@ -8,0 +8,0 @@ */

{
"name": "dual-api",
"version": "0.0.1",
"version": "0.0.2",
"title": "dualAPI",

@@ -5,0 +5,0 @@ "description": "Make your module implement dual APIs, callback API and thenable (Promise) API.",

# dualAPI
[![npm](https://img.shields.io/npm/v/dual-api.svg)](https://www.npmjs.com/package/dual-api) [![GitHub issues](https://img.shields.io/github/issues/anseki/dual-api.svg)](https://github.com/anseki/dual-api/issues) [![dependencies](https://img.shields.io/badge/dependencies-No%20dependency-brightgreen.svg)](package.json) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE-MIT)
Make your module implement dual APIs.

@@ -4,0 +6,0 @@ When the method of your module is called, if a callback Function is appended to the arguments, the method works as callback API. Otherwise the method returns a thenable [`Promise`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise) instance.

Sorry, the diff of this file is not supported yet

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