8000 GitHub - peterblockman/jsutils: Utils functions written in functional programming styles
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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>:x-oauth-basic@github.com/".insteadOf https://x-oauth-basic@github.com/
  1. Install private repository
    Verbose log level for debugging access errors.
npm install --loglevel verbose --save git+https://x-oauth-basic@github.com/<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://x-oauth-basic@github.com/<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

  •  
  •  
  •  
  •  
0