mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
JS: NPM packages changes for CFW SDK
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
# Flipper Zero JavaScript SDK
|
||||
This package contains official tooling and typings for developing Flipper Zero
|
||||
applications in JavaScript.
|
||||
# Momentum FW JavaScript SDK
|
||||
This package contains tooling and typings for developing Flipper Zero
|
||||
applications in JavaScript for Momentum Custom Firmware.
|
||||
|
||||
This is a fork of the [Official Flipper Zero JS SDK](https://www.npmjs.com/package/@flipperdevices/fz-sdk),
|
||||
with added types for the extra features provided by the Momentum JavaScript API.
|
||||
|
||||
Scripts made for Official Flipper Zero JS SDK will work on Momentum Firmware too.
|
||||
If you use extra features provided by Momentum, you are encouraged to use syntax like
|
||||
`if (doesSdkSupport(["feature-name"])) { ... }` so that your JS app can work on Official
|
||||
Firmware too, aswell as all other compliant Custom Firmwares. If some of those extra
|
||||
features are essential to the functionality of your app, you can use `checkSdkFeatures(["feature1", "feature2"])`
|
||||
near the beginning of your script, which will show a warning to the user that these features
|
||||
are not available in their firmware distribution.
|
||||
|
||||
## Getting started
|
||||
Create your application using the interactive wizard:
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
{
|
||||
"name": "@next-flip/fz-sdk-mntm",
|
||||
"version": "0.1.1",
|
||||
"description": "Type declarations and documentation for native JS modules available on Flipper Zero",
|
||||
"description": "Type declarations and documentation for native JS modules available on Momentum Custom Firmware for Flipper Zero",
|
||||
"keywords": [
|
||||
"momentum",
|
||||
"momentum firmware",
|
||||
"next-flip",
|
||||
"flipper",
|
||||
"flipper zero",
|
||||
"framework"
|
||||
|
||||
Reference in New Issue
Block a user