p-fun

1.0.0 • Public • Published

��#� �p�-�f�u�n� � � �-�-�-� � � � � � �A�l�l� �P�r�o�m�i�s�e� �U�t�i�l�s� �f�u�n�c�t�i�o�n�s� �f�r�o�m� �g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s� �b�u�n�d�l�e�d� �t�o�g�e�t�h�e�r�!� � � � �#�#� �I�n�s�t�a�l�l�a�t�i�o�n� � �-�-�-� � � � ��s�h� � �n�p�m� �i�n�s�t�a�l�l� �p�-�f�u�n� �-�-�s�a�v�e� � �� � � � �#�#� �U�s�a�g�e� � �-�-�-� � � � ��j�a�v�a�s�c�r�i�p�t� � �c�o�n�s�t� �p� �=� �r�e�q�u�i�r�e�(�'�p�-�f�u�n�'�)� � � � �/�*� � � � � � �T�h�a�t�'�s� �i�t�!�,� �n�o�w� �y�o�u� �c�a�n� �c�a�l�l� �a�n�y� �o�f� �h�i�s� �f�u�n�c�t�i�o�n�s� �:�)� � �*�/� � � � �p�.�d�e�l�a�y�(�1�0�0�0�)� � � �.�t�h�e�n�(�(�)� �=�>� �c�o�n�s�o�l�e�.�l�o�g�(�'�I� �w�a�i�t�e�d� �1�0�0�0� �m�i�l�l�i�s�e�c�o�n�d�s� �t�o� �s�e�n�d� �t�h�i�s� �m�e�s�s�a�g�e�!� �:�D�'�)�)� � � � �� � � � �#�#� �I�n�f�o�r�m�a�t�i�o�n� � �-�-�-� � � � �O�n�e� �i�m�p�o�r�t�a�n�t� �t�h�i�n�g� �i�s� �t�h�a�t� �d�u�e� �t�o� �n�o�t� �a�l�l� �o�f� �t�h�e� �p�a�c�k�a�g�e�s� �b�e�i�n�g� �l�e�g�a�l� �v�a�r�i�a�b�l�e� �n�a�m�e�s� �i�n� �J�a�v�a�S�c�r�i�p�t� �(�f�o�r� �e�x�a�m�p�l�e� �t�h�e� �p�a�c�k�a�g�e� ��p�-�m�a�p�� �w�o�u�l�d� �b�e� �i�n�t�e�r�p�r�e�t�e�d� �a�s� ��p� �-� �m�a�p��,� �l�i�k�e� �i�t� �w�o�u�l�d� �b�e� �a� �m�a�t�h� �e�q�u�a�t�i�o�n�)� � � � �D�u�e� �t�o� �t�h�i�s�,� �t�h�e� �k�e�y�s� �i�n� �t�h�e� �o�b�j�e�c�t� �t�h�a�t� �r�e�p�r�e�s�e�n�t� �t�h�e� �f�u�n�c�t�i�o�n� �w�i�l�l� �f�o�l�l�o�w� �t�h�i�s� �n�a�m�i�n�g� �c�o�n�v�e�n�t�i�o�n�:� � � � �1�.� �I�f� �t�h�e� �m�o�d�u�l�e� �d�o�e�s� �n�o�t� �s�t�a�r�t� �w�i�t�h� ��p�-��,� �i�t� �w�i�l�l� �b�e� �t�e�m�p�o�r�a�r�y� �b�e� �a�d�d�e�d� �t�o� �t�h�e� �m�o�d�u�l�e� �n�a�m�e�,� �l�i�k�e� �t�h�i�s� ��r�e�q�u�i�r�e�(�'�d�e�l�a�y�'�)�� �-�>� ��r�e�q�u�i�r�e�(�'�p�-�d�e�l�a�y�'�)�� � �2�.� ��p�-�� �w�i�l�l� �n�o�w� �b�e� �r�e�m�o�v�e�d� �f�r�o�m� �t�h�e� �k�e�y� �n�a�m�e�,� �d�u�e� �t�o� �t�h�e� �r�e�c�o�m�m�e�n�d�e�d� �v�a�r�i�b�l�e� �t�h�e� ��r�e�q�u�i�r�e�(�'�p�-�f�u�n�'�)�� �b�e�i�n�g� �a�s�s�i�g�n�e�d� �t�o� �i�s� ��p�� �o�r� ��P��,� �l�i�k�e� �t�h�e� �e�x�a�m�p�l�e� �a�b�o�v�e�!� � �3�.� �I�f� �t�h�e� �m�o�d�u�l�e� �n�a�m�e� �h�a�s� �h�y�p�h�e�n�s� �(��-��)� �i�n� �i�t�,� �i�t� �w�i�l�l� �g�e�t� �r�e�m�o�v�e�d�,� �a�n�d� �t�h�e� �f�o�l�l�o�w�i�n�g� �c�h�a�r�a�c�t�e�r� �w�i�l�l� �b�e� �c�a�p�i�t�a�l�i�z�e�d�,� �l�i�k�e� �t�h�i�s� ��r�e�q�u�i�r�e�(�'�d�o�-�w�h�i�l�s�t�'�)�� �-�>� ��r�e�q�u�i�r�e�(�'�d�o�W�h�i�l�s�t�'�)�� � �4�.� �N�o�w� �t�h�e� �m�o�d�u�l�e� �n�a�m�e� �w�i�l�l� �g�e�t� �a�d�d�e�d� �t�o� �t�h�e� �o�b�j�e�c�t� �t�h�a�t� �t�h�i�s� �m�o�d�u�l�e� �i�s� �e�x�p�o�r�t�i�n�g�,� �f�o�r� �e�x�a�m�p�l�e� �l�i�k�e� �t�h�i�s�:� � � � � � ��j�a�v�a�s�c�r�i�p�t� � � � � � �c�o�n�s�t� �p� �=� �{� � � � � � � � � � �d�o�W�h�i�l�s�t�:� �r�e�q�u�i�r�e�(�'�p�-�d�o�-�w�h�i�l�s�t�'�)� � � � � � �}� � � � � � �� � � � �#�#� �D�o�c�u�m�e�n�t�a�t�i�o�n� � �-�-�-� � �#�#�#�#�#� ��r�e�q�u�i�r�e�(�'�p�-�f�u�n�'�)�� � � � �R�e�t�u�r�n�s� �a�n� �o�b�j�e�c�t� �w�i�t�h� �a�l�l� �t�h�e� �P�r�o�m�i�s�e� �u�t�i�l� �f�u�n�c�t�i�o�n�s�!� � � � �T�h�e�y� �w�i�l�l� �b�e� �m�a�p�p�e�d� �j�u�s�t� �l�i�k�e� �t�h�i�s�:� � � � �-� ��a�l�l�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�a�l�l�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�a�l�l�)�:� �R�u�n� �p�r�o�m�i�s�e�-�r�e�t�u�r�n�i�n�g� �&�a�m�p�;� �a�s�y�n�c� �f�u�n�c�t�i�o�n�s� �c�o�n�c�u�r�r�e�n�t�l�y� �w�i�t�h� �o�p�t�i�o�n�a�l� �l�i�m�i�t�e�d� �c�o�n�c�u�r�r�e�n�c�y� � �-� ��a�n�y�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�a�n�y�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�a�n�y�)�:� �W�a�i�t� �f�o�r� �a�n�y� �p�r�o�m�i�s�e� �t�o� �b�e� �f�u�l�f�i�l�l�e�d� � �-� ��b�r�e�a�k�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�b�r�e�a�k�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�b�r�e�a�k�)�:� �B�r�e�a�k� �o�u�t� �o�f� �a� �p�r�o�m�i�s�e� �c�h�a�i�n� � �-� ��c�a�n�c�e�l�a�b�l�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�c�a�n�c�e�l�a�b�l�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�c�a�n�c�e�l�a�b�l�e�)�:� �C�r�e�a�t�e� �a� �p�r�o�m�i�s�e� �t�h�a�t� �c�a�n� �b�e� �c�a�n�c�e�l�e�d� � �-� ��c�a�t�c�h�I�f�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�c�a�t�c�h�-�i�f�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�c�a�t�c�h�-�i�f�)�:� �C�o�n�d�i�t�i�o�n�a�l� �p�r�o�m�i�s�e� �c�a�t�c�h� �h�a�n�d�l�e�r� � �-� ��d�e�b�o�u�n�c�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�d�e�b�o�u�n�c�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�d�e�b�o�u�n�c�e�)�:� �D�e�b�o�u�n�c�e� �p�r�o�m�i�s�e�-�r�e�t�u�r�n�i�n�g� �&�a�m�p�;� �a�s�y�n�c� �f�u�n�c�t�i�o�n�s� � �-� ��d�e�f�e�r�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�d�e�f�e�r�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�d�e�f�e�r�)�:� �C�r�e�a�t�e� �a� �d�e�f�e�r�r�e�d� �p�r�o�m�i�s�e� � �-� ��d�e�l�a�y�� �-�>� �[��r�e�q�u�i�r�e�(�'�d�e�l�a�y�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�d�e�l�a�y�)�:� �D�e�l�a�y� �a� �p�r�o�m�i�s�e� �a� �s�p�e�c�i�f�i�e�d� �a�m�o�u�n�t� �o�f� �t�i�m�e� � �-� ��d�o�W�h�i�l�s�t�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�d�o�-�w�h�i�l�s�t�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�d�o�-�w�h�i�l�s�t�)�:� �C�a�l�l�s� �a� �f�u�n�c�t�i�o�n� �r�e�p�e�a�t�e�d�l�y� �w�h�i�l�e� �a� �c�o�n�d�i�t�i�o�n� �r�e�t�u�r�n�s� �t�r�u�e� �a�n�d� �t�h�e�n� �r�e�s�o�l�v�e�s� �t�h�e� �p�r�o�m�i�s�e� � �-� ��e�a�c�h�S�e�r�i�e�s�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�e�a�c�h�-�s�e�r�i�e�s�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�e�a�c�h�-�s�e�r�i�e�s�)�:� �I�t�e�r�a�t�e� �o�v�e�r� �p�r�o�m�i�s�e�s� �s�e�r�i�a�l�l�y� � �-� ��e�v�e�n�t�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�e�v�e�n�t�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�e�v�e�n�t�)�:� �P�r�o�m�i�s�i�f�y� �a�n� �e�v�e�n�t� �b�y� �w�a�i�t�i�n�g� �f�o�r� �i�t� �t�o� �b�e� �e�m�i�t�t�e�d� � �-� ��e�v�e�r�y�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�e�v�e�r�y�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�k�e�v�v�a�/�p�-�e�v�e�r�y�)�:� �T�e�s�t� �w�h�e�t�h�e�r� �a�l�l� �p�r�o�m�i�s�e�s� �p�a�s�s�e�s� �a� �t�e�s�t�i�n�g� �f�u�n�c�t�i�o�n� � �-� ��f�i�l�t�e�r�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�f�i�l�t�e�r�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�f�i�l�t�e�r�)�:� �F�i�l�t�e�r� �p�r�o�m�i�s�e�s� �c�o�n�c�u�r�r�e�n�t�l�y� � �-� ��f�i�n�a�l�l�y�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�f�i�n�a�l�l�y�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�f�i�n�a�l�l�y�)�:� ��P�r�o�m�i�s�e�#�f�i�n�a�l�l�y�(�)�� �p�o�n�y�f�i�l�l� �-� �I�n�v�o�k�e�d� �w�h�e�n� �t�h�e� �p�r�o�m�i�s�e� �i�s� �s�e�t�t�l�e�d� �r�e�g�a�r�d�l�e�s�s� �o�f� �o�u�t�c�o�m�e� � �-� ��f�o�r�e�v�e�r�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�f�o�r�e�v�e�r�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�f�o�r�e�v�e�r�)�:� �R�u�n� �p�r�o�m�i�s�e�-�r�e�t�u�r�n�i�n�g� �&�a�m�p�;� �a�s�y�n�c� �f�u�n�c�t�i�o�n�s� �r�e�p�e�a�t�e�d�l�y� �u�n�t�i�l� �y�o�u� �e�n�d� �i�t� � �-� ��h�a�r�d�R�e�j�e�c�t�i�o�n�� �-�>� �[��r�e�q�u�i�r�e�(�'�h�a�r�d�-�r�e�j�e�c�t�i�o�n�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�h�a�r�d�-�r�e�j�e�c�t�i�o�n�)�:� �M�a�k�e� �u�n�h�a�n�d�l�e�d� �p�r�o�m�i�s�e� �r�e�j�e�c�t�i�o�n�s� �f�a�i�l� �h�a�r�d� �r�i�g�h�t� �a�w�a�y� �i�n�s�t�e�a�d� �o�f� �t�h�e� �d�e�f�a�u�l�t� �s�i�l�e�n�t� �f�a�i�l� � �-� ��i�f�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�i�f�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�i�f�)�:� �C�o�n�d�i�t�i�o�n�a�l� �p�r�o�m�i�s�e� �c�h�a�i�n�s� � �-� ��i�m�m�e�d�i�a�t�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�i�m�m�e�d�i�a�t�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�i�m�m�e�d�i�a�t�e�)�:� �R�e�t�u�r�n�s� �a� �p�r�o�m�i�s�e� �r�e�s�o�l�v�e�d� �i�n� �t�h�e� �n�e�x�t� �e�v�e�n�t� �l�o�o�p� �-� �t�h�i�n�k� ��s�e�t�I�m�m�e�d�i�a�t�e�(�)�� � �-� ��i�s�P�r�o�m�i�s�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�i�s�-�p�r�o�m�i�s�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�i�s�-�p�r�o�m�i�s�e�)�:� �C�h�e�c�k� �i�f� �s�o�m�e�t�h�i�n�g� �i�s� �a� �p�r�o�m�i�s�e� � �-� ��l�a�z�y�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�l�a�z�y�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�l�a�z�y�)�:� �C�r�e�a�t�e� �a� �l�a�z�y� �p�r�o�m�i�s�e� �t�h�a�t� �d�e�f�e�r�s� �e�x�e�c�u�t�i�o�n� �u�n�t�i�l� ��.�t�h�e�n�(�)�� �o�r� ��.�c�a�t�c�h�(�)�� �i�s� �c�a�l�l�e�d� � �-� ��l�i�m�i�t�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�l�i�m�i�t�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�l�i�m�i�t�)�:� �R�u�n� �m�u�l�t�i�p�l�e� �p�r�o�m�i�s�e�-�r�e�t�u�r�n�i�n�g� �&�a�m�p�;� �a�s�y�n�c� �f�u�n�c�t�i�o�n�s� �w�i�t�h� �l�i�m�i�t�e�d� �c�o�n�c�u�r�r�e�n�c�y� � �-� ��l�o�c�a�t�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�l�o�c�a�t�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�l�o�c�a�t�e�)�:� �G�e�t� �t�h�e� �f�i�r�s�t� �f�u�l�f�i�l�l�e�d� �p�r�o�m�i�s�e� �t�h�a�t� �s�a�t�i�s�f�i�e�s� �t�h�e� �p�r�o�v�i�d�e�d� �t�e�s�t�i�n�g� �f�u�n�c�t�i�o�n� � �-� ��l�o�g�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�l�o�g�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�l�o�g�)�:� �L�o�g� �t�h�e� �v�a�l�u�e�/�e�r�r�o�r� �o�f� �a� �p�r�o�m�i�s�e� � �-� ��l�o�u�d�R�e�j�e�c�t�i�o�n�� �-�>� �[��r�e�q�u�i�r�e�(�'�l�o�u�d�-�r�e�j�e�c�t�i�o�n�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�l�o�u�d�-�r�e�j�e�c�t�i�o�n�)�:� �M�a�k�e� �u�n�h�a�n�d�l�e�d� �p�r�o�m�i�s�e� �r�e�j�e�c�t�i�o�n�s� �f�a�i�l� �l�o�u�d�l�y� �i�n�s�t�e�a�d� �o�f� �t�h�e� �d�e�f�a�u�l�t� �s�i�l�e�n�t� �f�a�i�l� � �-� ��m�a�p�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�m�a�p�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�m�a�p�)�:� �M�a�p� �o�v�e�r� �p�r�o�m�i�s�e�s� �c�o�n�c�u�r�r�e�n�t�l�y� � �-� ��m�a�p�S�e�r�i�e�s�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�m�a�p�-�s�e�r�i�e�s�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�m�a�p�-�s�e�r�i�e�s�)�:� �M�a�p� �o�v�e�r� �p�r�o�m�i�s�e�s� �s�e�r�i�a�l�l�y� � �-� ��m�e�m�o�i�z�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�m�e�m�o�i�z�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�m�e�m�o�i�z�e�)�:� �M�e�m�o�i�z�e� �p�r�o�m�i�s�e�-�r�e�t�u�r�n�i�n�g� �&�a�m�p�;� �a�s�y�n�c� �f�u�n�c�t�i�o�n�s� � �-� ��m�i�n�D�e�l�a�y�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�m�i�n�-�d�e�l�a�y�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�m�i�n�-�d�e�l�a�y�)�:� �D�e�l�a�y� �a� �p�r�o�m�i�s�e� �a� �m�i�n�i�m�u�m� �a�m�o�u�n�t� �o�f� �t�i�m�e� � �-� ��o�n�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�o�n�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�k�e�v�v�a�/�p�-�o�n�e�)�:� �T�e�s�t� �w�h�e�t�h�e�r� �s�o�m�e� �p�r�o�m�i�s�e� �p�a�s�s�e�s� �a� �t�e�s�t�i�n�g� �f�u�n�c�t�i�o�n� � �-� ��p�i�f�y�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�i�f�y�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�i�f�y�)�:� �P�r�o�m�i�s�i�f�y� �a� �c�a�l�l�b�a�c�k�-�s�t�y�l�e� �f�u�n�c�t�i�o�n� � �-� ��p�i�p�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�p�i�p�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�p�i�p�e�)�:� �C�o�m�p�o�s�e� �p�r�o�m�i�s�e�-�r�e�t�u�r�n�i�n�g� �&�a�m�p�;� �a�s�y�n�c� �f�u�n�c�t�i�o�n�s� �i�n�t�o� �a� �r�e�u�s�a�b�l�e� �p�i�p�e�l�i�n�e� � �-� ��p�r�o�g�r�e�s�s�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�p�r�o�g�r�e�s�s�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�p�r�o�g�r�e�s�s�)�:� �C�r�e�a�t�e� �a� �p�r�o�m�i�s�e� �t�h�a�t� �r�e�p�o�r�t�s� �p�r�o�g�r�e�s�s� � �-� ��p�r�o�p�s�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�p�r�o�p�s�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�p�r�o�p�s�)�:� �L�i�k�e� ��P�r�o�m�i�s�e�.�a�l�l�(�)�� �b�u�t� �f�o�r� ��M�a�p�� �a�n�d� ��O�b�j�e�c�t�� � �-� ��q�u�e�u�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�q�u�e�u�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�q�u�e�u�e�)�:� �P�r�o�m�i�s�e� �q�u�e�u�e� �w�i�t�h� �c�o�n�c�u�r�r�e�n�c�y� �c�o�n�t�r�o�l� � �-� ��r�a�c�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�r�a�c�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�r�a�c�e�)�:� �A� �b�e�t�t�e�r� ��P�r�o�m�i�s�e�.�r�a�c�e�(�)�� � �-� ��r�e�d�u�c�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�r�e�d�u�c�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�r�e�d�u�c�e�)�:� �R�e�d�u�c�e� �a� �l�i�s�t� �o�f� �v�a�l�u�e�s� �u�s�i�n�g� �p�r�o�m�i�s�e�s� �i�n�t�o� �a� �p�r�o�m�i�s�e� �f�o�r� �a� �v�a�l�u�e� � �-� ��r�e�f�l�e�c�t�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�r�e�f�l�e�c�t�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�r�e�f�l�e�c�t�)�:� �M�a�k�e� �a� �p�r�o�m�i�s�e� �a�l�w�a�y�s� �f�u�l�f�i�l�l� �w�i�t�h� �i�t�s� �a�c�t�u�a�l� �f�u�l�f�i�l�l�m�e�n�t� �v�a�l�u�e� �o�r� �r�e�j�e�c�t�i�o�n� �r�e�a�s�o�n� � �-� ��r�e�t�r�y�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�r�e�t�r�y�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�r�e�t�r�y�)�:� �R�e�t�r�y� �a� �p�r�o�m�i�s�e�-�r�e�t�u�r�n�i�n�g� �o�r� �a�s�y�n�c� �f�u�n�c�t�i�o�n� � �-� ��s�e�r�i�e�s�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�s�e�r�i�e�s�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�s�e�r�i�e�s�)�:� �R�u�n� �p�r�o�m�i�s�e�-�r�e�t�u�r�n�i�n�g� �&�a�m�p�;� �a�s�y�n�c� �f�u�n�c�t�i�o�n�s� �i�n� �s�e�r�i�e�s� � �-� ��s�e�t�t�l�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�s�e�t�t�l�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�s�e�t�t�l�e�)�:� �S�e�t�t�l�e� �p�r�o�m�i�s�e�s� �c�o�n�c�u�r�r�e�n�t�l�y� �a�n�d� �g�e�t� �t�h�e�i�r� �f�u�l�f�i�l�l�m�e�n�t� �v�a�l�u�e� �o�r� �r�e�j�e�c�t�i�o�n� �r�e�a�s�o�n� � �-� ��s�o�m�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�s�o�m�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�s�o�m�e�)�:� �W�a�i�t� �f�o�r� �a� �s�p�e�c�i�f�i�e�d� �n�u�m�b�e�r� �o�f� �p�r�o�m�i�s�e�s� �t�o� �b�e� �f�u�l�f�i�l�l�e�d� � �-� ��t�a�p�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�t�a�p�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�t�a�p�)�:� �T�a�p� �i�n�t�o� �a� �p�r�o�m�i�s�e� �c�h�a�i�n� �w�i�t�h�o�u�t� �a�f�f�e�c�t�i�n�g� �i�t�s� �v�a�l�u�e� �o�r� �s�t�a�t�e� � �-� ��t�h�r�o�t�t�l�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�t�h�r�o�t�t�l�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�t�h�r�o�t�t�l�e�)�:� �T�h�r�o�t�t�l�e� �p�r�o�m�i�s�e�-�r�e�t�u�r�n�i�n�g� �&�a�m�p�;� �a�s�y�n�c� �f�u�n�c�t�i�o�n�s� � �-� ��t�i�m�e�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�t�i�m�e�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�t�i�m�e�)�:� �M�e�a�s�u�r�e� �t�h�e� �t�i�m�e� �a� �p�r�o�m�i�s�e� �t�a�k�e�s� �t�o� �r�e�s�o�l�v�e� � �-� ��t�i�m�e�o�u�t�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�t�i�m�e�o�u�t�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�t�i�m�e�o�u�t�)�:� �T�i�m�e�o�u�t� �a� �p�r�o�m�i�s�e� �a�f�t�e�r� �a� �s�p�e�c�i�f�i�e�d� �a�m�o�u�n�t� �o�f� �t�i�m�e� � �-� ��t�i�m�e�s�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�t�i�m�e�s�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�t�i�m�e�s�)�:� �R�u�n� �p�r�o�m�i�s�e�-�r�e�t�u�r�n�i�n�g� �&�a�m�p�;� �a�s�y�n�c� �f�u�n�c�t�i�o�n�s� �a� �s�p�e�c�i�f�i�c� �n�u�m�b�e�r� �o�f� �t�i�m�e�s� �c�o�n�c�u�r�r�e�n�t�l�y� � �-� ��t�r�y�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�t�r�y�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�t�r�y�)�:� ��P�r�o�m�i�s�e�#�t�r�y�(�)�� �p�o�n�y�f�i�l�l� �-� �S�t�a�r�t�s� �a� �p�r�o�m�i�s�e� �c�h�a�i�n� � �-� ��w�a�i�t�F�o�r�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�w�a�i�t�-�f�o�r�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�w�a�i�t�-�f�o�r�)�:� �W�a�i�t� �f�o�r� �a� �c�o�n�d�i�t�i�o�n� �t�o� �b�e� �t�r�u�e� � �-� ��w�a�t�e�r�f�a�l�l�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�w�a�t�e�r�f�a�l�l�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�w�a�t�e�r�f�a�l�l�)�:� �R�u�n� �p�r�o�m�i�s�e�-�r�e�t�u�r�n�i�n�g� �&�a�m�p�;� �a�s�y�n�c� �f�u�n�c�t�i�o�n�s� �i�n� �s�e�r�i�e�s�,� �e�a�c�h� �p�a�s�s�i�n�g� �i�t�s� �r�e�s�u�l�t� �t�o� �t�h�e� �n�e�x�t� � �-� ��w�h�i�l�s�t�� �-�>� �[��r�e�q�u�i�r�e�(�'�p�-�w�h�i�l�s�t�'�)��]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�s�i�n�d�r�e�s�o�r�h�u�s�/�p�-�w�h�i�l�s�t�)�:� �C�a�l�l�s� �a� �f�u�n�c�t�i�o�n� �r�e�p�e�a�t�e�d�l�y� �w�h�i�l�e� �a� �c�o�n�d�i�t�i�o�n� �r�e�t�u�r�n�s� �t�r�u�e� �a�n�d� �t�h�e�n� �r�e�s�o�l�v�e�s� �t�h�e� �p�r�o�m�i�s�e� � � � �#�#� �L�i�c�e�n�s�e� � � � �M�I�T� � �

Package Sidebar

Install

npm i p-fun

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • xenu