1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-17 07:45:52 +01:00
verdaccio/website/translated_docs/es-ES/node-api.md
verdacciobot 281933a998 New Crowdin translations (#479)
* New translations contributing.md (Chinese Simplified)

* New translations contributing.md (Chinese Traditional)

* New translations contributing.md (Chinese Traditional, Hong Kong)

* New translations contributing.md (Portuguese, Brazilian)

* New translations contributing.md (Spanish)

* New translations contributing.md (Urdu (Pakistan))

* New translations docker.md (Chinese Simplified)

* New translations docker.md (Chinese Traditional)

* New translations docker.md (Chinese Traditional, Hong Kong)

* New translations docker.md (Portuguese, Brazilian)

* New translations docker.md (Spanish)

* New translations docker.md (Urdu (Pakistan))

* New translations node-api.md (Chinese Simplified)

* New translations node-api.md (Chinese Traditional)

* New translations node-api.md (Chinese Traditional, Hong Kong)

* New translations node-api.md (Portuguese, Brazilian)

* New translations node-api.md (Spanish)

* New translations node-api.md (Urdu (Pakistan))

* New translations uplinks.md (Chinese Traditional)

* New translations uplinks.md (Chinese Traditional, Hong Kong)

* New translations uplinks.md (Portuguese, Brazilian)

* New translations uplinks.md (Spanish)

* New translations uplinks.md (Urdu (Pakistan))

* New translations uplinks.md (Chinese Simplified)

* New translations config.md (Chinese Simplified)

* New translations config.md (Spanish)

* New translations config.md (Urdu (Pakistan))

* New translations config.md (Chinese Traditional, Hong Kong)

* New translations config.md (Portuguese, Brazilian)

* New translations config.md (Chinese Traditional)
2018-01-20 09:09:16 +01:00

20 lines
413 B
Markdown

---
id: node-api
title: Node API
---
Verdaccio can be invoqued programmatically.
## Usage
#### Programmatically
```js
import startServer from 'verdaccio';
startServer(configJsonFormat, 6000, store, '1.0.0', 'verdaccio',
(webServer, addrs, pkgName, pkgVersion) => {
webServer.listen(addr.port || addr.path, addr.host, () => {
console.log('verdaccio running');
});
});
```