#javascript
3 APIs con questa etichetta
Prettier API
Formate e embeleze o código-fonte com Prettier, o formatador de código de facto. Passe código e um idioma e obtenha-o consistentemente reformatado: JavaScript, JSX, TypeScript, TSX, CSS, SCSS, LESS, GraphQL e Vue. Ajuste a saída com largura de impressão, largura de tabulação / tabs, ponto e vírgula, aspas simples vs duplas e estilo de vírgula final. Erros de sintaxe retornam com uma mensagem clara. O inverso de um minificador. Processamento local puro — sem chave, sem serviço de terceiros, instantâneo. Ao vivo. 3 endpoints. Construído para editores de código e playgrounds, ferramentas de colar e formatar, embelezamento de snippets, documentação e verificações de formatação CI. Complementa o formatador SQL e as ferramentas JSON/YAML/Markdown (que cobrem seus próprios idiomas).
api.oanor.com/prettier-api
Minify API
Shrink your web assets. Minify CSS, JavaScript and HTML through one simple API and get back the compact output plus how many bytes (and what percent) you saved. CSS is minified with clean-css, JavaScript with Terser (with optional name-mangling and compression toggles), and HTML with html-minifier-terser (collapsing whitespace, dropping comments and redundant attributes, and minifying inline CSS and JS). Pass the source as a parameter or in the request body (up to 5 MB). Pure local processing — no key, no third-party service, instant. Live. 4 endpoints. Built for build pipelines, on-the-fly asset optimisation, email-HTML slimming, CMS and CDN tooling, and page-speed work.
api.oanor.com/minify-api
npm Registry API
Everything about npm packages in one clean API. Look up a package’s latest metadata — version, description, license, homepage, repository, author, keywords, dist-tags, dependencies and maintainers — list its full version history with release dates, pull download statistics for the last day, week, month or year, and search the registry across more than three million packages. Sourced live from the public npm registry and returned as tidy JSON through a fast, reliable API. Ideal for developer dashboards and tooling, package and dependency analytics, supply-chain and security checks, CI/CD and documentation sites.
api.oanor.com/npm-api