Nylon Pendulum Movement

    common-prefix
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/common-prefix package

    1.1.0 • Public • Published

    common-prefix stable

    Retrieve the common prefix across multiple strings.

    Usage

    NPM

    str = common(strings)

    For example:

    var common = require('common-prefix')
     
    common([
        'hello world'
      , 'hello again'
      , 'hello once again'
    ]) === 'hello '

    License

    MIT. See LICENSE.md for details.

    Install

    npm i common-prefix

    DownloadsWeekly Downloads

    27,556

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • hughsk