node.inflection icon indicating copy to clipboard operation
node.inflection copied to clipboard

A port of inflection-js to node.js module

Results 16 node.inflection issues
Sort by recently updated
recently updated
newest added

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.30 to 8.4.31. Release notes Sourced from postcss's releases. 8.4.31 Fixed \r parsing to fix CVE-2023-44270. Changelog Sourced from postcss's changelog. 8.4.31 Fixed \r parsing to fix...

dependencies

### Example: ``` inflection.titleize("x-men:-the-last-stand") "X-Men:-the-Last-Stand" ``` ### For comparison on Rails 4.2: ``` Loading development environment (Rails 4.2.7.1) irb(main):001:0> ActiveSupport::Inflector.titleize("x-men:-the-last-stand") => "X Men: The Last Stand" ``` ### And Rails...

Looks like this library doesn't gives the proper plural of word **"confetto"**. When I pluralise **"confetto"** it should give the **output "confetti"** but instead it **gives "confettos"** which is not...

Searched for CamelCase to dash-case and didn't find it, so I added this ability to this repo. Before: `inflection.transform( 'AllJobs', [ 'underscore', 'dasherize' ]); // === 'all-jobs'` Now: `inflection.kebabize('AllJobs'); //...

It looks like the tests don't cover this scenario either.. nor do they have any dash-case-as-input tests... Example input: `my-dash-case` Example output: `MyDashCase`

## Steps to Reproduce ``` const inflection = require('inflection'); inflection.pluralize('accommodation'); ``` ## Expected Outcome "accommodations" ## Actual Outcome "accommodation" ## Version Originally noticed this in inflection 1.13.4. Upgraded to 2.0.1...

Singularizing words ending in `ta` changes it to `tum`. I guess this was done for `data` -> `datum` but there are many examples where this is _not_ the correct singularization....

This PR 1. Adds [harden-runner](https://github.com/step-security/harden-runner) GitHub Action to the workflow. 2. Sets the token permission for the workflow to `contents: read`. This is a security best practice and gets you...

In Rails `String#underscore` translates dashes `-` into `_`. Output from `pry` using Rails: ``` [15] pry(main)> "credable-searches".underscore => "credable_searches" ``` In this library dashes keep being dashes. Output from console...