Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
progressive-web-sdk
Advanced tools
A set of libraries and components which make up the SDK for Progressive Web
( ( ( )
)\ ) ( ( ) )\ ) )\ ) ( /(
(()/( ( ( ( ( ( ( ) ( )\))( ' ( ( /( (()/((()/( )\())
/(_)))( ( )\))( )( ))\ ( ( )\ /(( ))\ ((_)()\ ) ))\ )\()) /(_))/(_))|((_)\
(_)) (()\ )\ ((_))\(()\ /((_))\ )\((_)(_))\ /((_) _(())\_)() /((_)((_)\ (_)) (_))_ |_ ((_)
| _ \ ((_) ((_) (()(_)((_)(_)) ((_)((_)(_)_)((_)(_)) \ \((_)/ /(_)) | |(_) / __| | \| |/ /
| _/| '_|/ _ \/ _` || '_|/ -_)(_-<(_-<| |\ V / / -_) \ \/\/ / / -_) | '_ \ \__ \ | |) | ' <
|_| |_| \___/\__, ||_| \___|/__//__/|_| \_/ \___| \_/\_/ \___| |_.__/ |___/ |___/ _|\_\
|___/
A set of components and utilities which make up the SDK for Progressive Web
You can find the latest version of the SDK Docs on DevCenter
npm i
The Progressive Web SDK has a number of components that can be used in progressive web builds. Component documentation and examples can be seen by running our styleguide:
npm run docs:dev
You can now view the styleguide at http://localhost:9000.
Our docs are built on styleguidist.
To use the progressive-web-sdk in a project, add it as a dev-dependency to your package.json.
Once you have done that, run npm install
.
Components can now be imported into your project by loading the build files from dist
:
import Button from 'progressive-web-sdk/dist/components/button'
const myButton = <Button text="Take My Money!" />
If you are actively developing a new library or component in the SDK, run the following
command in order for the files to be built into dist
when making changes in src
:
npm run dev:watch
To mark a function as experimental or deprecated in code, you can use the utility functions experimental()
or deprecate()
from progressive-web-sdk/src/utils/warnings
within your experimental/deprecated function. This will prompt a warning in the browser whenever your function is used. You can add an additional custom message to the warning by passing a string into the first parameter.
Example usage:
import {experimental} from './utils/warnings'
someExperimentalFunction() => {
// regular usage
experimental()
// the function implementation
}
This is the warning that will print in your browser:
[MOBIFY API WARNING]: You are currently using an experimental function: [someExperimentalFunction] This function may change at any time.
import {deprecate} from './utils/warnings'
someFunctionToBeDeprecated() => {
// with custom message
deprecate("It will be removed in version 1.2.3. Please use [newFunction] instead.")
// the function implementation
}
This is the warning that will print in your browser:
[MOBIFY API WARNING]: You are currently using an deprecated function: [someFunctionToBeDeprecated]. It will be removed in version 1.2.3. Please use [newFunction] instead.
Please see the Documentation README.
FAQs
A set of libraries and components which make up the SDK for Progressive Web
The npm package progressive-web-sdk receives a total of 9 weekly downloads. As such, progressive-web-sdk popularity was classified as not popular.
We found that progressive-web-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.