Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rubify

cristianbgp12MIT1.0.4

Still missing Ruby?

ruby, javascript, useless

readme

rubify

A lovely package that gives you some ruby methods to use in Javascript

Examples

import { p, puts, reverse } from "rubify";

reverse("yfibur"); // rubify

p("Hello"); // Hello

puts("🌎"); // 🌎

Also you can add any of these methods:

  • p
  • puts
  • reverse
  • empty
  • chars
  • downcase
  • upcase
  • even
  • odd
  • times
  • capitalize
  • uniq