Skip to content

Utils functions written in functional programming styles

License

Notifications You must be signed in to change notification settings

peterblockman/jsutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsutils

Useful utils functions written in functional programming style

Utils

  1. parameter
  • Validating functions' parameters
  1. json_api
  • Format data to JSONAPI
  1. folktale
  • folktale utils functions
  1. lodash
  • More supports for function programming
  • Add folktale/result to some lodash functions
  1. ramda
  • Add some resuable lens
  • Add folktale/result to some ramda functions
  1. general_utils
  • useful uncategorized utils functions

Installation

Private Github repository

Local

  1. Create personal Github access token
    Go to https://github.com/settings/tokens and create an access token with repo scope . Save the token in a secure place.
  2. Setup url rewrite in ~/.gitconfig
git config --global url."https://<GITHUB_TOKEN>:[email protected]/".insteadOf https://[email protected]/
  1. Install private repository
    Verbose log level for debugging access errors.
npm install --loglevel verbose --save git+https://[email protected]/<USERNAME>/<REPOSITORY>.git

Heroku

In the project (deployed to Heroku) where this repo installed on:

  1. Set config var
heroku config:set GITHUB_TOKEN=<token_value>
  1. Configure package.json Set heroku-prebuild
...
"scripts": {
  heroku-prebuild: "npm install --loglevel verbose --save git+https://[email protected]/<USERNAME>/<REPOSITORY>.git"
  }, 
...

Public Github repository

Local

npm install peterblockman/jsutils.git --save

Heroku

It will be automatically installed while deploying to Heroku

Development

npm install
npm test

About

Utils functions written in functional programming styles

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •