JSPM

@httpie/classes

1.5.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q15744F
  • License MIT

Class utilities for Node.js and JavaScript

Package Exports

  • @httpie/classes

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@httpie/classes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme



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 ๐Ÿ˜Š

  1. Create a fork
  2. Create your feature branch: git checkout -b my-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request ๐Ÿš€

License

MIT ยฉ Supercharge


httpiejs.com  ·  GitHub @httpie  ·  Twitter @httpiejs