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

41 lines
1.0 KiB
Markdown
Raw Normal View History

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
---
id: node-api
title: "Node API"
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
---
Verdaccio puede ser invocado programáticamente. El API de node ha sido introducido despues de la versión `verdaccio@3.0.0-alpha.10`.
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
## Uso
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
#### Programáticamente
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
```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');
});
});
```
## Otras implementaciones
* [verdaccio-server](https://github.com/boringame/verdaccio-server) local npm registry proxy server
```js
// js
import * as verdaccioServer from "verdaccio-server";
verdaccioServer.start();
verdaccioServer.stop();
verdaccioServer.list();
verdaccioServer.stopAll();
verdaccioServer.show();
verdaccioServer.cli();
// windows .net2
verdaccioServer.serviceInstall();
verdaccioServer.serviceUninstall();
verdaccioServer.serviceStart();
verdaccioServer.serviceStop();
verdaccioServer.serviceRestart();
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
```