he he (for “HTML entities”) is a robust HTML entity encoder/decoder written in JavaScript. It supports all standardized named character references as per HTML, handles ambiguous ampersands and other edge cases just like a browser would, has an extensive test suite, and — contrary to many other JavaScript solutions — he handles astral Unicode symbols just fine. An online demo is available. Installa
Selenium is a browser automation library. Most often used for testing web-applications, Selenium may be used for any task that requires automating interaction with the browser. Selenium may be installed via npm with npm install selenium-webdriver You will need to download additional components to work with each of the major browsers. The drivers for Chrome, Firefox, and Microsoft's IE and Edge web
This package requires TCP/IP to connect to SQL Server, and you may need to enable this in your installation. const sql = require('mssql') (async () => { try { // make sure that any items are correctly URL encoded in the connection string await sql.connect('Server=localhost,1433;Database=database;User Id=username;Password=password;Encrypt=true') const result = await sql.query`select * from mytable
cron is a robust tool for running jobs (functions or commands) on schedules defined using the cron syntax. Perfect for tasks like data backups, notifications, and many more! execute a function whenever your scheduled job triggers execute a job external to the javascript process (like a system command) using child_process use a Date or Luxon DateTime object instead of cron syntax as the trigger for
cors CORS is a node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options. Follow me (@troygoode) on Twitter! Installation Usage Simple Usage Enable CORS for a Single Route Configuring CORS Configuring CORS Asynchronously Enabling CORS Pre-Flight Configuration Options Demo License Author Installation This is a Node.js module available through th
This first parameter is a path or array of paths. The second argument is an options object. Options: preserveRoot: If set to boolean false, then allow the recursive removal of the root directory. Otherwise, this is not allowed. tmp: Windows only. Temp folder to place files and folders for the "move then remove" fallback. Must be on the same physical device as the path being deleted. Defaults to os
This module has utilities for URL resolution and parsing meant to have feature parity with node.js core url module. Parsed URL objects have some or all of the following fields, depending on whether or not they exist in the URL string. Any parts that are not in the URL string will not be in the parsed object. Examples are shown for the URL 'http://user:pass@host.com:8080/p/a/t/h?query=string#hash'
Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env. Storing configuration in the environment separate from code is based on The Twelve-Factor App methodology. 🌱 Install 🏗️ Usage (.env) 🌴 Multiple Environments 🆕 🚀 Deploying (encryption) 🆕 📚 Examples 📖 Docs ❓ FAQ ⏱️ Changelog
import { encode, decode, parse, stringify } from 'urlencode'; console.log(encode('苏千')); // default is utf8 console.log(encode('苏千', 'gbk')); // '%CB%D5%C7%A7' // decode gbk decode('%CB%D5%C7%A7', 'gbk'); // '苏千' // parse gbk querystring parse('nick=%CB%D5%C7%A7', { charset: 'gbk' }); // {nick: '苏千'} // stringify obj with gbk encoding var str = 'x[y][0][v][w]=' + encode('雾空', 'gbk'); // x[y][0][v]
Node.js body parsing middleware. Parse incoming request bodies in a middleware before your handlers, available under the req.body property. Note As req.body's shape is based on user-controlled input, all properties and values in this object are untrusted and should be validated before trusting. For example, req.body.foo.toString() may fail in multiple ways, for example the foo property may not be
[!WARNING] Remember the hyphen! Do not install the deprecated querystring package! For browser usage, this package targets the latest version of Chrome, Firefox, and Safari. import queryString from 'query-string'; console.log(location.search); //=> '?foo=bar' const parsed = queryString.parse(location.search); console.log(parsed); //=> {foo: 'bar'} console.log(location.hash); //=> '#token=bada55caf
A command line tool to generate PDF from URL, HTML or Markdown files with electron. Versioning Starting with version 4.0.x the master branch will always have the latest electron version. Semantic Versioning is used, and corresponds to electron versions in the following way: electron-pdf 25.0.x (master) => electron=25.4.0, node=16.15.0, chrome=114.0.5735.248 electron-pdf 20.0.x => electron=20.0.2,
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く