npm.io
1.1.0 • Published 9 years ago

common-prefix v1.1.0

Weekly downloads
19,555
License
MIT
Repository
github
Last release
9 years ago

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.

commonprefixstringstartfirstsame
lookly-preset-eslint@everything-registry/sub-chunk-1363@aburkov/gomergejerigptk@amory/transform-react-pug@amory/react-pugyaml-to-messageformat@infinitebrahmanuniverse/nolb-common-@jc21/messageformat-convert@ptb/transform-react-pug@startupjs/eslint-plugin-react-pug@startupjs/babel-plugin-transform-react-pugmulti-tapmidijssf-from-sf2-pmbopen-radix-triegroup-by-subsequence@zalastax/nolb-common-babel-plugin-transform-react-pugbabel-plugin-transform-react-pug-coffeebabel-plugin-transform-react-pug-coffee7aws-fanoutburplcached-hafas-clientbudget-sciencedocker-windows-notifiereslint-plugin-react-pugethfsplorerfzz
1.1.0

9 years ago

1.0.0

11 years ago

contact@npm.io