New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@httpie/classes

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@httpie/classes

Class utilities for Node.js and JavaScript

latest
Source
npmnpm
Version
1.5.0
Version published
Maintainers
1
Created
Source


Classes

Class utilities for Node.js and JavaScript


Installation · Usage · API



Latest Version Monthly downloads

Follow @eldorplus and @httpiejs for updates!

Introduction

The @httpie/classes package provides a handful methods around classes in Node.js and JavaScript. For example, determine whether a given input is a class using the .isClass(input) method.

Installation

npm i @httpie/classes

Usage

Using @httpie/classes is pretty straightforward. Install and import the package and use it right away:

const { isClass } = require('@httpie/classes')

isClass(class Rabbit {})
// true

isClass(function classLikeRabbitFunc () {})
// false

API

isClass(input)

Determine whether the given input is a class.

const { isClass } = require('@httpie/classes')

isClass(class YourClass {})
// true

isFunction(input)

Determine whether the given input is a function.

const { isFunction } = require('@httpie/classes')

isFunction(function sum () {})
// true

Contributing

Do you miss a class-related function? We very much appreciate your contribution! Please send in a pull request 😊

  • Create a fork
  • Create your feature branch: git checkout -b my-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request 🚀

License

MIT © Supercharge

httpiejs.com  ·  GitHub @httpie  ·  Twitter @httpiejs

Keywords

nodejs

FAQs

Package last updated on 23 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts