---
sourceDocument: Australia Build or modify applications
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/application-development

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Use third-party libraries

# Use third-party libraries in applications with the ServiceNow SDK {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

Call third-party libraries in your application to use existing open-source functionality with the ServiceNow SDK.

## Antes de Iniciar

Create a JavaScript module. For more information, see [Create and use JavaScript modules in applications with the ServiceNow SDK](https://servicenow-prod.fluidtopics.net/yeUPdaCTbIDhv4Q7hPRTnw "Optimize your codebase by defining reusable code blocks with JavaScript modules and the ServiceNow SDK.").

Role required: admin

## Por Que e Quando Desempenhar Esta Tarefa

Third-party libraries are added to applications as JavaScript modules.
For general information about the syntax used to create JavaScript modules, see the [JavaScript modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) page on the MDN Web Docs website.  
Importante:  
You can't use third-party libraries that rely on unsupported functionality, such as unsupported APIs or ECMAScript features. For more information about unsupported functionality, see [Third-party library support in Australia](https://servicenow-prod.fluidtopics.net/YHmBSDNFwYrWrjpfU~fquw "Review which common third-party libraries are supported, partially supported, or unsupported by the ServiceNow IDE and ServiceNow SDK.") and [JavaScript modules and third-party libraries](https://servicenow-prod.fluidtopics.net/~ZpTh0ym3z3CLJbh76lA6w "Optimize your code base using JavaScript modules to group related code or add third-party libraries and reuse their code within applications.").

## Procedimento

1. In Visual Studio Code, open your scoped application directory.
2. From the application directory, open an integrated Terminal window.
3. Install the npm package for the library.  

       npm install <package name>

   The library's packages are added to your application in the node_modules directory, and the library is added as a dependency in the package.json file for the application.

       "dependencies": {
           "<package name>": "<version>"
         }

4. In a JavaScript module, import the library using an import statement.  
   In this example, the module includes a namespace import for the lodash module.

       import * as lodash from "lodash"

   In this example, the module includes a named import for the camelCase function in the lodash module.

       import camelCase from 'lodash'

5. Call code imported from the library in your module to reuse it.

## O que Fazer Depois

Build and install your changes on an instance. For more information, see [Build and installdeploy an application with the ServiceNow SDK](https://servicenow-prod.fluidtopics.net/GCQJKq4yOxXXoDY~k7hdzw "Build and installdeploy a local application developed with the ServiceNow SDK on a ServiceNow instance.").
**Conceitos relacionados**   

* [JavaScript modules and third-party libraries](https://servicenow-prod.fluidtopics.net/~ZpTh0ym3z3CLJbh76lA6w "Optimize your code base using JavaScript modules to group related code or add third-party libraries and reuse their code within applications.")

