Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

abbrev

Package Overview
Dependencies
0
Maintainers
5
Versions
9
Issues
File Explorer

Advanced tools

abbrev

Like ruby's abbrev module, but in js

    2.0.0latest

Version published
Maintainers
5
Weekly downloads
16,801,256
increased by1.08%

Weekly downloads

Changelog

Source

2.0.0 (2022-10-31)

⚠️ BREAKING CHANGES

  • Refactored with the following breaking changes:
    • abbrev is now compatible with the following semver range for node: ^14.17.0 || ^16.13.0 || >=18.0.0
    • monkeyPatch API has been removed

Features

  • 602c0fe add @npmcli/template-oss (#36) (@lukekarrys)

Bug Fixes

  • b658525 replace deprecated String.prototype.substr() (#38) (@CommanderRoot)

Readme

Source

abbrev-js

Just like ruby's Abbrev.

Usage:

var abbrev = require("abbrev"); abbrev("foo", "fool", "folding", "flop"); // returns: { fl: 'flop' , flo: 'flop' , flop: 'flop' , fol: 'folding' , fold: 'folding' , foldi: 'folding' , foldin: 'folding' , folding: 'folding' , foo: 'foo' , fool: 'fool' }

This is handy for command-line scripts, or other cases where you want to be able to accept shorthands.

FAQs

What is abbrev?

Like ruby's abbrev module, but in js

Is abbrev popular?

The npm package abbrev receives a total of 14,582,992 weekly downloads. As such, abbrev popularity was classified as popular.

Is abbrev well maintained?

We found that abbrev demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 5 open source maintainers collaborating on the project.

Last updated on 01 Nov 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc