ActiveSupport Helpers for JS
The goal of this project is to implement as fully as possible all of the ActiveSupport core extensions with it equivalent JS/Typescript implementation.
If you are afraid of prototype augmentation, then leave and don't look back.
This library will inject base JS prototypes with several helper methods, since most of the drawbacks of prototype pollution are addressed by Typescript and the ability to properly document this changes this should be harmless.
# Base (Helpers with no dependencies)
npm install @activesupport.js/base --save-dev
yarn add --dev install @activesupport.js/base
# Case (Helpers for case, with dependency on case, pluralize and transliteration)
npm install @activesupport.js/case --save-dev
yarn add --dev install @activesupport.js/case
# Date (Helpers for date, with dependency on luxon)
npm install @activesupport.js/date --save-dev
yarn add --dev install @activesupport.js/date
See Documentation for each package
This project is maintained by a community of developers. Contributions are welcome and appreciated. You can find activesupport.js on GitHub; feel free to open an issue or create a pull request: https://github.com/yknx4/activesupport.js/pulls
For more information, read the contribution guide.
Copyright (c) 2021 Ale Ornelas.
Licensed under the MIT License.