GithubHelp home page GithubHelp logo

gkt-util's Introduction

gkt-util

A small library providing utility methods for Greenkey

Installation

npm: npm install https://github.com/greenkeytech/gkt-util --save

yarn: yarn add https://github.com/greenkeytech/gkt-util.

For development, you will need to install mocha globally for testing.

npm: npm install -g mocha

yarn: yarn global add mocha

Usage

// import whatever function you wish to use.
import { validEmail } from 'gkt-util';

validEmail('[email protected]');
// true

Testing

npm test is a shorthand for calling mocha. Recommended setup is a test-build within ur editor that you can call to check if ur tests pass.

Sublime Build Setup

Tools -> Build System -> New Build System will open a new file. Copy paste this in:

{
  "cmd": ["mocha", "${file}"],
  "working_dir": "${project_path:${folder}}"
}

Then set your build system for this repo by Tools-> Build System -> Mocha. You can now press Command or Ctrl + B to run tests with the results outputting on the editor console!

Other editors should have similar options, PR to show this steps on different editors/IDE is encouraged.

Contributing

Release

Devs will pull the latest version that is Released via github. To update a version, submit a PR that gets approved into a branch. Then, go to the github repository website, click on release link between the branches and contribtors, click Draft a new release, release the branch your PR was submitted to.

We code using airBnB styleguide. Point your linters there. Again, test-driven development is encouraged - write your tests, then the function.

Release History

  • 0.1.0 Initial release

gkt-util's People

Contributors

agiantsquid avatar riotcku avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.