Swiftpack.co - Package - AlwaysRightInstitute/cows

cows

Swift3 macOS tuxOS Travis

400+ ASCII 🐮s

The list is just an array of strings and can be used wherever.

Swift

Swift modules cannot contain resources, hence the cows are compiled into code cows. Code cows are pretty slow to compile due to the excellence of the compiler.

Examples

         (__)
         (oo)
  /-------\/
 / |     ||
+  ||----||
   ~~    ~~
     Cow


       \(:)/
       (o|o)
  /-----\_/
 /|      |
^ ||----||
  ^^    ^^
 Klingon Cow


                 ________________
         ^__^   /                \
         (oo)  ( Milk is logical. )
  /-------\/ --'\________________/
 / |     ||
*  ||W---||
   ^^    ^^
Mr Spock's cow


      (__)
    /   oo      ______
   |  /\_|     |      \
   |  |___     |       |
   |   ---@    |_______|
*  |  |   ----   |    |
 \ |  |_____
  \|________|
        CompuCow


        ___________________________
       | (__)  (__)  (__)   (__)  |
       | ( oo  ( oo  ( oo   ( oo  |
_______| /\_|  /\_|  /\_|   /\_|  |________
|                                         |
|   _____                        _____    |
|___|   |________________________|   |____|
    |___|                        |___|
              Cow-pooling


  /--------------------/
 / |     ||           /          (__)
*  ||----||          /-----------(oo)
   ^^    ^^                       \/
        Network Virtual Cow
(with separate frontend and backend)


         (__)               (__)  |    |  (__)
         (--)               (--)  |    |  (--)
  /-------\/   /o    /-------\/   |    I   \/-------\
 / |  M  |----< o   / |  L  |----<T    I>----|  D  | \
*  ||----|   /  o  *  ||----|     I    I     |----||  *
   ^^    ^      |     ^^    ^          |     ^    ^^
                |                      |
              Teenage Mutant Ninja Cows

                                  @
               (__)    (__) _____/
            /| (oo) _  (oo)/----/_____    *
  _o\______/_|\_\/_/_|__\/|____|//////== *- *  * -
 /_________   \   00 |   00 |       /== -* * -
[_____/^^\_____\_____|_____/^^\_____]     *- * -
      \__/                 \__/
               Cow-mobile

Usage

import cows

cows.allCows

let someCow = vaca()

API

allCows()

Returns an array of cows.

vaca()

Returns a random cow.

Related

  • Original:
    • cows - Node.js cows, the original
    • vaca - Get a random ASCII cow 🐮
    • cows-docker - ASCII cows on Docker

License

MIT © Sindre Sorhus Noze.io port: MIT © ZeeZide GmbH

Github

link
Stars: 5
Help us keep the lights on

Dependencies

Releases

1.0.0 - Mar 7, 2017

The Noze.io cows module as a standalone Swift Package Manager package (also included Xcode dylib build as well as makefiles for Linux w/o SPM).

Rock solid 1.0.0 release. Moo!