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

Package detail

sillylib

ryanmatonis15ISC1.1.3

Package forsillylib

readme

sillylib

A library I just made up.

Install

npm install sillylib

and then import it with

const sillylib = require('sillylib')('*your api key*');

sillylib is hosted as a remote service, so you will need to get an API key to use it.

You can get a free API key for testing sillylib here.

string( string, otherString )

string:

  • string: String,
  • otherString: String

Call string like this:

sillylib.string('Hello', 'World').then(console.log)

Returns

hello HELLO

multiply( x, y )

multiply:

  • x: Number,
  • y: Number

Call multiply like this:

sillylib.multiply(3, 4).then(console.log)

Returns

12

objectify( key, value )

objectify:

  • key: String,
  • value: Number

Call objectify like this:

sillylib.objectify('facebook', 4).then(console.log)

Returns

{"facebook":4}

arrify( key, value )

arrify:

  • key: any,
  • value: any

Call arrify like this:

sillylib.arrify(1, 1).then(console.log)

Returns

[{"value":1},{"value":1}]