sillylib
v1.1.3
Published
Package forsillylib
Downloads
29
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}]