\begin{quote}
A smaller version of caniuse-\/db, with only the essentials! \end{quote}
\hypertarget{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5023}{}\doxysection{Why?}\label{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5023}
The full data behind \href{http://caniuse.com/}{\texttt{ Can I use}} is incredibly useful for any front end developer, and on the website all of the details from the database are displayed to the user. However in automated tools, \href{https://github.com/Fyrd/caniuse/issues/1827}{\texttt{ many of these fields go unused}}; it\textquotesingle{}s not a problem for server side consumption but client side, the less Java\+Script that we send to the end user the better.

caniuse-\/lite then, is a smaller dataset that keeps essential parts of the data in a compact format. It does this in multiple ways, such as converting {\ttfamily null} array entries into empty strings, representing support data as an integer rather than a string, and using base62 references instead of longer human-\/readable keys.

This packed data is then reassembled (via functions exposed by this module) into a larger format which is mostly compatible with caniuse-\/db, and so it can be used as an almost drop-\/in replacement for caniuse-\/db for contexts where size on disk is important; for example, usage in web browsers. The API differences are very small and are detailed in the section below.\hypertarget{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5024}{}\doxysection{API}\label{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5024}

\begin{DoxyCode}{0}
\DoxyCodeLine{import * as lite from 'caniuse-\/lite'; }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5025}{}\doxysubsection{$<$tt$>$lite.\+agents$<$/tt$>$}\label{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5025}
caniuse-\/db provides a full {\ttfamily data.\+json} file which contains all of the features data. Instead of this large file, caniuse-\/lite provides this data subset instead, which has the {\ttfamily browser}, {\ttfamily prefix}, {\ttfamily prefix\+\_\+exceptions}, {\ttfamily usage\+\_\+global} and {\ttfamily versions} keys from the original.

In addition, the subset contains the {\ttfamily release\+\_\+date} key with release dates (as timestamps) for each version\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{\{}
\DoxyCodeLine{  "{}release\_date"{}: \{}
\DoxyCodeLine{    "{}6"{}: 998870400,}
\DoxyCodeLine{    "{}7"{}: 1161129600,}
\DoxyCodeLine{    "{}8"{}: 1237420800,}
\DoxyCodeLine{    "{}9"{}: 1300060800,}
\DoxyCodeLine{    "{}10"{}: 1346716800,}
\DoxyCodeLine{    "{}11"{}: 1381968000,}
\DoxyCodeLine{    "{}5.5"{}: 962323200}
\DoxyCodeLine{  \}}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5026}{}\doxysubsection{$<$tt$>$lite.\+feature(js)$<$/tt$>$}\label{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5026}
The {\ttfamily feature} method takes a file from {\ttfamily data/features} and converts it into something that more closely represents the {\ttfamily caniuse-\/db} format. Note that only the {\ttfamily title}, {\ttfamily stats} and {\ttfamily status} keys are kept from the original data.\hypertarget{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5027}{}\doxysubsection{$<$tt$>$lite.\+features$<$/tt$>$}\label{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5027}
The {\ttfamily features} index is provided as a way to query all of the features that are listed in the {\ttfamily caniuse-\/db} dataset. Note that you will need to use the {\ttfamily feature} method on values from this index to get a human-\/readable format.\hypertarget{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5028}{}\doxysubsection{$<$tt$>$lite.\+region(js)$<$/tt$>$}\label{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5028}
The {\ttfamily region} method takes a file from {\ttfamily data/regions} and converts it into something that more closely represents the {\ttfamily caniuse-\/db} format. Note that {\itshape only} the usage data is exposed here (the {\ttfamily data} key in the original files).\hypertarget{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5029}{}\doxysection{Contributors}\label{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5029}
Thanks goes to these wonderful people (\href{https://github.com/kentcdodds/all-contributors\#emoji-key}{\texttt{ emoji key}})\+:

$\vert$ \href{http://beneb.info}{\texttt{ \textsubscript{{\bfseries{Ben Briggs}}}}}~\newline
\href{https://github.com/ben-eb/caniuse-lite/commits?author=ben-eb}{\texttt{ 💻}} \href{https://github.com/ben-eb/caniuse-lite/commits?author=ben-eb}{\texttt{ 📖}} \href{\#review-ben-eb}{\texttt{ 👀}} \href{https://github.com/ben-eb/caniuse-lite/commits?author=ben-eb}{\texttt{ ⚠️}} $\vert$ \href{https://github.com/andyjansson}{\texttt{ \textsubscript{{\bfseries{Andy Jansson}}}}}~\newline
\href{https://github.com/ben-eb/caniuse-lite/commits?author=andyjansson}{\texttt{ 💻}} $\vert$ \href{http://twitter.com/sitnikcode}{\texttt{ \textsubscript{{\bfseries{Andrey Sitnik}}}}}~\newline
\href{https://github.com/ben-eb/caniuse-lite/commits?author=ai}{\texttt{ 💻}} $\vert$ ~\newline
\textsubscript{{\bfseries{Igor Deryabin}}}~\newline
\href{https://github.com/ben-eb/caniuse-lite/commits?author=rodweb}{\texttt{ 💻}} $\vert$ $\vert$ \+:---\+: $\vert$ \+:---\+: $\vert$ \+:---\+: $\vert$ \+:---\+: $\vert$

This project follows the \href{https://github.com/kentcdodds/all-contributors}{\texttt{ all-\/contributors}} specification. Contributions of any kind welcome!



Big thanks to \href{https://www.digitalocean.com/?utm_source=opensource&utm_campaign=caniuse-lite}{\texttt{ Digital\+Ocean}} for supporting this project by providing their great infrastructure for us.\hypertarget{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5030}{}\doxysection{License}\label{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5030}
The data in this repo is available for use under a CC BY 4.\+0 license (\href{http://creativecommons.org/licenses/by/4.0/}{\texttt{ http\+://creativecommons.\+org/licenses/by/4.\+0/}}). For attribution just mention somewhere that the source is caniuse.\+com. If you have any questions about using the data for your project please contact me here\+: \href{http://a.deveria.com/contact}{\texttt{ http\+://a.\+deveria.\+com/contact}}\hypertarget{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5031}{}\doxysection{Security contact information}\label{md_sfcode_node_modules_caniuse_lite_README_autotoc_md5031}
To report a security vulnerability, please use the \href{https://tidelift.com/security}{\texttt{ Tidelift security contact}}. Tidelift will coordinate the fix and disclosure. 