simov / slugify

Slugifies a string
MIT License
1.5k stars 129 forks source link

Provide ES module #160

Closed wereHamster closed 1 year ago

wereHamster commented 2 years ago

The "slugify.mjs" file is a thin wrapper around the original code, to avoid re-implementing the logic.

The new code is not tested, I'm not sure how to set up mocha to test both .js and .mjs at the same time. Since the implementation is the same, the tests would only cover that the file is valid ESM and can be correctly imported. I'm not sure how much value that adds.

Feel free to squash the commits in this PR, I didn't pay particular attention to clean commits.

dargmuesli commented 1 year ago

@simov is there a possibility / an eta of this being merged? :pray:

dargmuesli commented 1 year ago

@wereHamster why did you close this? :0