0.0.7 • Published 1 year ago

shortapi v0.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Usage

const shortapi = require('shortapi')
shortapi.log.i('Hellow orld!')
// expected: [Info] Hello world!
console.log(shortapi.list())
// expected: bin, log

Functions

shortapi.log.i('info')
			.w('warn')
			.e('error')
shortapi.bin.toBin(255) // output: 11111111
			.binCounter(255) // output: from 0 to 11111111

Create your own sub-modules

  • In your project go to /node-modules/shortapi/modules/
  • Write your script!
function logsomething(){
	console.log('Something')
}
module.exports={
logsomething
}
  • Don't forget to add
module.exports.info={
index:"your_module_index"
}
  • Now you can run it in your project
const shortapi = require('shortapi')
shortapi.your_module_index.logsomething()
// output: Something
0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago