1.1.3 • Published 4 years ago

sillylib v1.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

#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}]
1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago