# SPM Con SPM possiamo installare diversi pacchetti. SPM è il gestore di Pacchetti di Snode. Per scaricare un pacchetto, dovrete aggiungere degli url nel file trusted_indexes.txt. Il formato è: ```text nomepacchetto=zips.esempio.it/url/zip/pacchetto/nomepacchetto.zip ``` Una volta fatto, provate a fare: ``` python spm.py install nomepacchetto -g ``` - python - Python - spm.py - Il file di SPM - install - per installare - nomepacchetto - il nome del pacchetto - -g lo installa globalmente, non per il progetto --- ## La funzione Require Con la funzione `require` possiamo usare i moduli di Snode: ``` >var hello_world = require("__snode_hello__") >hello_world Ciao mondo! >var tzdata = require("simple_tzdata") >tzdata.europeRome() {-9223372036854775808 2996 0 LMT} {-3252098996 2996 0 RMT} {-2403565200 3600 0 CET} {-1690765200 7200 1 CEST} --snip-- ``` --- ## Avviare file JS Per avviare file JS, usate: ```bash python run_js.py nomefile.js ``` per eseguirlo. --- [Homepage](https://snode-docs.readthedocs.io/it/latest/) \ _(Fine della documentazione)_