Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    fn-namepublic

    fn-name Build Status

    Get the name of a named function

    There is a non-standard name property on functions, but it's not supported in all browsers.
    This module tries that property then falls back to extracting the name from the function source.

    Install

    $ npm install --save fn-name

    Usage

    fnName(function foo() {});
    //=> foo 

    License

    MIT © Sindre Sorhus

    install

    npm i fn-name

    Downloadslast 7 days

    117,464

    version

    2.0.1

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar