4.1.1. LoRaScript API

LoRaScriptはNode.jsおよびサードパーティからのAPIセットを提供します。

パッケージのすべてのAPIまたはクラスがサポートされているわけではありません。

例えばNetパッケージのServerクラスはLoRaScriptでは許可されていません

次の表はAPIのリストです。


表4-4 LoRaScript API
パッケージ名前タイプ参照
BufferBufferClass

https://nodejs.org/docs/v0.12.7/api/buffer.html

SlowBufferClass
cryptosetEngineFunctionhttps://nodejs.org/docs/v0.12.7/api/crypto.html
getCiphersFunction
getHashesFunction
createCredentialsFunction
createHashFunction
HashClass
createHmacFunction
HmacClass
createCipherFunction
createCipherivFunction
CipherClass
createDecipherFunction
createDecipherivFunction
DecipherClass
createSignFunction
SignClass
createVerifyFunction
VerifyClass
createDiffieHellmanFunction
DiffieHellmanClass
getDiffieHellmanFunction
createECDHFunction
ECDHClass
pbkdf2Function
pbkdf2SyncFunction
randomBytesFunction
pseudoRandomBytesFunction
CertificateClass
publicEncryptFunction
privateDecryptFunction
dgramcreateSocketFunctionhttps://nodejs.org/docs/v0.12.7/api/dgram.html
SocketClass
dns














getServersFunctionhttps://nodejs.org/api/dns.html
lookupFunction
lookupServiceFunction
resolveFunction
resolve4Function
resolve6Function
resolveCnameFunction
resolveMxFunction
resolveNaptrFunction
resolveNsFunction
resolveSoaFunction
resolveSrvFunction
resolvePtrFunction
resolveTxtFunction
reverseFunction
setServersFunction
httprequestFunctionhttps://nodejs.org/docs/v0.12.7/api/http.html

getFunction
httpsrequestFunctionhttps://nodejs.org/docs/v0.12.7/api/https.html
getFunction
netconnectFunctionhttps://nodejs.org/docs/v0.12.7/api/net.html
createConnectionFunction
SokcetClass
isIPFunction
isIPv4Function
isIPV6Function
punycodedecodeFunctionhttps://nodejs.org/docs/v0.12.7/api/punycode.html
encodeFunction
toUnicodeFunction
toASCIIFunction
ucs2.decodeFunction
ucs2.encodeFunction
versionFunction
querystringstringify

Function

https://nodejs.org/docs/v0.12.7/api/querystring.html
parseFunction
escapeFunction
unescapeFunction
smallocsmallocClasshttps://nodejs.org/docs/v0.12.7/api/smalloc.html
string_decoderstringDecoderClasshttps://nodejs.org/docs/v0.12.7/api/string_decoder.html
timerssetTimeoutFunctionhttps://nodejs.org/docs/v0.12.7/api/timers.html
clearTimeoutFunction
setIntervalFunction
clearIntervalFunction
unrefFunction
refFunction
setImmediateFunction
clearImmediateFunction
urlparseFunctionhttps://nodejs.org/docs/v0.12.7/api/url.html
formatFunction
resolveFunction
utildebuglogFunctionhttps://nodejs.org/docs/v0.12.7/api/util.html
formatFunction
logFunction
inspectFunction
isArrayFunction
isRegExpFunction
isDateFunction
isErrorFunction
inheritsFunction
deprecateFunction
debugFunction
errorFunction
puts

Function

printFunction
pumpFunction
zlib  createGzipFunctionhttps://nodejs.org/docs/v0.12.7/api/zlib.html
createGnuzipFunction
createDeflateFunction
createInflateFunction
createDeflateRawFunction
createInflateRawFunction
createUnzipFunction
ZlibClass
GzipClass
GunzipClass
DeflateClass
InflateClass
DeflateRawClass
InflateRawClass
UnzipClass
deflateFunction
deflateSyncFunction
deflateRawFunction
deflateRawSyncFunction
gzipFunction
gzipSyncFunction
inflateFunction
inflateSyncFunction
inflateRawFunction
inflateRawSyncFunction
unzipFunction
unzipSyncFunction
bcryptjssetrandomfallbackrandomFunctionhttps://www.npmjs.com/package/bcryptjs
genSaltSyncFunction
genSaltFunction
hashSyncFunction
hashFunction
compareSyncFunction
compareFunction
getRoundsFunction
getSaltFunction
wsWebSocketClasshttps://github.com/websockets/ws
ServerClass
SenderClass
ReceiverClass
createServerFunction
createConnectionFunction
msgpack-liteencodeFunctionhttps://github.com/kawanet/msgpack-lite
decodeFunction
EncoderClass
DecoderClass
createEncodeStreamFunction
createDecodeStreamFunction
createCodecFunction
codecClass
lora-packetfromWireFunctionhttps://github.com/anthonykirby/lora-packet





fromFieldsFunction
verifyMICFunction
calculateMICFunction
recalculateMICFunction
decryptFunction
constantsFunction