emberjs / ember-inflector

ember-inflector goal is to be rails compatible.
MIT License
107 stars 80 forks source link

Possible to use in Node? #151

Open samselikoff opened 6 years ago

samselikoff commented 6 years ago

I'm trying to use esm in my addon, so I'm converting over some stuff that previously relied on Ember to using npm packages.

Currently my addon uses

import { singularize, pluralize } from 'ember-inflector';

which works in the browser but not in node.

Is is possible to get at singularize and pluralize from Node?

oskarrough commented 3 years ago

For anyone ending up here, and without comparing the two modules further, take a look at https://github.com/martinandert/inflected, which works directly in browser and node.