Skip to content

yknx4/activesupport.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

activesupport.js

ActiveSupport Helpers for JS

Release Commitizen friendly Tests npm-base npm-case npm-date Codacy Badge codecov CodeFactor Coverage Status

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.

Installation

# 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

Usage

See Documentation for each package

Contributing

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.

License

Copyright (c) 2021 Ale Ornelas.
Licensed under the MIT License.