Giter VIP home page Giter VIP logo

function-name-support's Introduction

function-name-support

Feature detection for function names. See The names of functions in ES6 for background. Provides the same results as node-compat-table.

Installation

$ npm install --save function-name-support

Usage

const functionNameSupport = require('function-name-support')

support

A frozen object with boolean values. Compare with node-compat-table:

  • function statements: functionStatements
  • function expressions: functionExpressions
  • new Function: newFunction
  • bound functions: boundFunctions
  • variables (function): functionVariables
  • object methods (function): functionObjectMethods
  • accessor properties: accessorProperties
  • shorthand methods: shorthandMethods
  • symbol-keyed methods: symbolKeyedMethods
  • class statements: classStatements
  • class expressions: classExpressions
  • variables (class): classVariables
  • object methods (class): classObjectMethods
  • class prototype methods: classPrototypeMethods
  • class static methods: classStaticMethods

hasFullSupport

A boolean indicating whether all known function name inferences are supported.

bitFlags

An integer that stores a serialization of the support object. Useful when storing a function name (or lack thereof) for later comparisons along with details on whether the function name was inferable at all.

isSubsetOf(otherFlags): boolean

Helper method for comparing bitFlags. Returns true if it is a subset of otherFlags.

isSupersetOf(otherFlags: number): boolean

Helper method for comparing bitFlags. Returns true if it is a superset of otherFlags.

function-name-support's People

Contributors

novemberborn avatar

Watchers

 avatar  avatar

function-name-support's Issues

An in-range update of istanbul-lib-instrument is breaking the build 🚨

Version 1.7.2 of istanbul-lib-instrument just got published.

Branch Build failing 🚨
Dependency istanbul-lib-instrument
Current Version 1.7.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As istanbul-lib-instrument is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.