All Projects → delvedor → fast-decode-uri-component

delvedor / fast-decode-uri-component

Licence: MIT license
Fast and safe decodeURIComponent

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to fast-decode-uri-component

Fab Speed Dial
Angular Material FAB speed dial
Stars: ✭ 82 (+272.73%)
Mutual labels:  speed
Point Of View
Template rendering plugin for Fastify
Stars: ✭ 150 (+581.82%)
Mutual labels:  speed
Fast Json Stringify
2x faster than JSON.stringify()
Stars: ✭ 2,499 (+11259.09%)
Mutual labels:  speed
Cdnjs
🤖 CDN assets - The #1 free and open source CDN built to make life easier for developers.
Stars: ✭ 9,270 (+42036.36%)
Mutual labels:  speed
Foxify
The fast, easy to use & typescript ready web framework for Node.js
Stars: ✭ 138 (+527.27%)
Mutual labels:  speed
Flying Pages
Load inner pages instantly, intelligently
Stars: ✭ 169 (+668.18%)
Mutual labels:  speed
Uwp App Launcher Mobile
[Open Source] It's like the iOS and Android Home Screens but for Windows 10 (Phones).
Stars: ✭ 47 (+113.64%)
Mutual labels:  speed
Api
Minimal, extremely fast, lightweight Ruby framework for HTTP APIs
Stars: ✭ 252 (+1045.45%)
Mutual labels:  speed
Benchmarks
Comparison tools
Stars: ✭ 139 (+531.82%)
Mutual labels:  speed
Phpfastcache
A high-performance backend cache system. It is intended for use in speeding up dynamic web applications by alleviating database load. Well implemented, it can drops the database load to almost nothing, yielding faster page load times for users, better resource utilization. It is simple yet powerful.
Stars: ✭ 2,171 (+9768.18%)
Mutual labels:  speed
React Pinpoint
An open source utility library for measuring React component render times.
Stars: ✭ 93 (+322.73%)
Mutual labels:  speed
Speed Measure Webpack Plugin
⏱ See how fast (or not) your plugins and loaders are, so you can optimise your builds
Stars: ✭ 1,980 (+8900%)
Mutual labels:  speed
Speedmeter
Display the gps speed [Android]
Stars: ✭ 169 (+668.18%)
Mutual labels:  speed
Quicklink
⚡️Faster subsequent page-loads by prefetching in-viewport links during idle time
Stars: ✭ 9,176 (+41609.09%)
Mutual labels:  speed
Windrose
A Python Matplotlib, Numpy library to manage wind data, draw windrose (also known as a polar rose plot), draw probability density function and fit Weibull distribution
Stars: ✭ 208 (+845.45%)
Mutual labels:  speed
Faster Than Csv
Faster CSV on Python 3
Stars: ✭ 52 (+136.36%)
Mutual labels:  speed
Rea
Lightweight library of data structures implemented in C++11, designed for constant time insertion, erasure, lookup, and fastest possible iteration.
Stars: ✭ 157 (+613.64%)
Mutual labels:  speed
Safe stl
A safe version of STL
Stars: ✭ 17 (-22.73%)
Mutual labels:  safe
Stubble
Trimmed down {{mustache}} templates in .NET
Stars: ✭ 247 (+1022.73%)
Mutual labels:  speed
Nfancurve
A small and lightweight POSIX script for using a custom fan curve in Linux for those with an Nvidia GPU.
Stars: ✭ 180 (+718.18%)
Mutual labels:  speed

fast-decode-uri-component

js-standard-style Build Status

Decodes strings encoded by encodeURI and encodeURIComponent, without throwing errors on invalid escapes, instead, it returns null.

Installation

npm install fast-decode-uri-component

Usage

const fastDecode = require('fast-decode-uri-component')

console.log(fastDecode('test')) // 'test'
console.log(fastDecode('%25')) // '%'
console.log(fastDecode('/test/hel%2Flo')) // '/test/hel/lo'

console.log(fastDecode('/test/hel%"Flo')) // null
console.log(fastDecode('%7B%ab%7C%de%7D')) // null
console.log(fastDecode('%ab')) // null

Benchmarks

You can find the benchmark file here.

# fast-decode-uri-component
ok ~539 ms (0 s + 539114308 ns)

# decodeURIComponent
ok ~6.06 s (6 s + 62305153 ns)

Acknowledgements

This project has been forked from jridgewell/safe-decode-uri-component because I wanted to change the behaviour of the library on invalid inputs, plus change some internals.
All the credits before the commit 53000fe goes to the jridgewell/safe-decode-uri-component project contributors.
Since the commit 9673ab7 the project will be maintained by @delvedor.

License

Licensed under MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].