### Installation via NPM
Source: https://www.nanostudio.org/nanogallery2
Command to install the nanogallery2 package using the Node Package Manager.
```bash
npm install nanogallery2
```
--------------------------------
### Standalone Lightbox Implementation
Source: https://www.nanostudio.org/nanogallery2
Use the data-nanogallery2-lightbox attribute on image elements to enable the lightbox functionality without additional JavaScript setup.
```html
data-ngsrc = "big_image_1.jpg"
data-nanogallery2-lightbox = '{ "viewerToolbar": { "display": false } }'
/>
```
--------------------------------
### JavaScript Initialization for NanoGallery2
Source: https://www.nanostudio.org/nanogallery2
Initialize NanoGallery2 using JavaScript within a jQuery(document).ready() function for dynamic control. This method is useful when gallery content or settings need to be loaded or modified programmatically.
```javascript