1.0.0 • Published 11 days ago

@zibuthe7j11/accusantium-exercitationem-incidunt v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

#@zibuthe7j11/accusantium-exercitationem-incidunt

Provides Number Long support for Mongoose.

Build Status

Example:

const mongoose = require('mongoose')
require('@zibuthe7j11/accusantium-exercitationem-incidunt')(mongoose);
const {Types: {Long}} = mongoose;

const partSchema = new Schema({
  long: {
    type: Long,
  }
});

const Part = db.model('Part', partSchema);
const part = new Part({long: '9223372036854775806'});

part.long = part.long.divide(Long.fromString('2'));
part.save()

install

npm install @zibuthe7j11/accusantium-exercitationem-incidunt

See node-mongodb-native docs on all the Long methods available.

LICENSE

TypeScript Usage

Make sure you enable both compilerOptions.allowSyntheticDefaultImports and compilerOptions.esModuleInterop in your tsconfig.json.

import mongoose from 'mongoose';
import mongooseLong from '@zibuthe7j11/accusantium-exercitationem-incidunt';

mongooseLong(mongoose);

const Long = mongoose.Schema.Types.Long;
ES6deterministicES2016propsettertypessyntaxerrordeepcopyArray.prototype.flatMapprotobufassignlruboundCSSminimalfixed-widthcomparerandomwritablelookdefinelanguageopenObservablesJSON-Schemaconfigjoimkdirptestingpnpm9electronhooksECMAScript 2018encryptionparserreact-hook-formreducejavascriptfunctionimmerramdapostcss-pluginredactreusecurriedfast-copyWebSocketslimitedcharacterInt8Arrayredux-toolkitcallbindflagbytenpmcall-boundconnectargvcallbackstreams2hashObjectqueueMicrotaskxhrbreakfulles2017prototypesymlinkmatchregular expressioninternaltypedarrayswordwrapxdgiterationinterruptsfsjasminecolorsES5libphonenumbercreateflatruntimeformattingrm -frjson-schemastylinginspectbrowserlistfast-clonelinewrapnativeTypeBoxmakestreamsequenceyupstylesheetdescriptionphoneyamles-abstractformspawncopytypesafeArrayBuffer#sliceArray.prototype.filterdirexpressfindupsameValueZeroless cssmulti-packagetranspilercollectioncolumngetteriteratees2015bannererror-handlingmiddlewaredatavalueBigUint64ArrayloadingchromiumstablesetImmediatextermspeedexetranspilereadablestreamECMAScript 6uuideditorwhichargsuptacitYAMLchildconcurrencybootstrap csssuperstructoptimizernegativefastclonejson-schema-validatorclassnameenderes8launchstyleguideautoprefixerCSSStyleDeclaration.envclassesshimhelpersarraycomputed-typesttyFloat32Arraystreamsnamesassertsresolvexdg-openjesthaswatchFilereact animationschemababel-corepackagefetchsymlinkssortenvironmentrequestgenericsescapestyled-componentsgetoptrfc4122trimEndclassnamesString.prototype.trim[[Prototype]]eslintpluginpoint-freebabelReflect.getPrototypeOfflatMapjapaneseregexSymbol.toStringTagspinnertrimStartrateextraanimationflattenserializerUint8ArrayapollobyteOffseterrorHyBicorsinputcss nestingObject.isinstallerirqawesomesaucejsonschemahigher-orderisfantasy-landcensorStreamsJSONvisualpushtrimio-tsscheme-validationObject.valuestapSymbolratelimitgroupBywaapipositiveequalityvestArrayBuffer.prototype.slicelengthpathsignaluninstallinvariantObservabledirectorysigtermformswordbreakrobustclioptioneslint-plugingetintrinsicmimemixinsECMAScript 3stringifierargumentscompile lesstoobjectjson-schema-validationES3$.extendes7watchinglessbluebirdAsyncIteratorurlprotocol-buffersestreeshrinkwrapes-shim APIECMAScript 2023getOwnPropertyDescriptorunicodeindicatorpolyfill_.extendreact-hooksjsxdomtapemimetypesfastifyfigletvalidatorreadexecES2019fromdotenvkoreancmdenumerablestructuredCloneStyleSheetmodulestypelinuxviewtsliboutputbyteLengthextend256rmexit-codehardlinksless.jscontains__proto__sometextemitfast-deep-copysearchless compilerparentRegExp.prototype.flagsentriescollection.es6cryptonceweaksetdeep-cloneutilityreactlockfilepropertycssextensionFunction.prototype.namemapbatchBigInt64ArrayefficientimportformatarraybufferauthES2023ES2021Array.prototype.findLastslotwebreal-timecommand-lineReactiveXforEachbufferobjreact posereduxponyfillrmdirtoArraysharedlogecmascripttestertouchnegative zerofindLasttrimLeftchaiwarningapibundlingapppasswordArrayfunctionalnodeECMAScript 2020getPrototypeOfsyntaxserializationlistenersidleschemeeventDispatchercode pointsconcatwraprangeerrorlesscssES2020ajv0descriptorsgroupdependenciescore-jsmergezodterminalconcatMapxssbundlerwatchercss variableastjsdiffspinnersharmonyjsdomfast-deep-clonewritenumberjQueryconsumepluginloggingform-validationeverypureworkerjsdataViewtoStringTagString.prototype.matchAllutilsvaluesargumentcodesmatchesconstfastcopymruintrinsicqsdataviewmetadatagradients css3websitespecStream@@toStringTagconsolemovechecksortedtoSortedinternal slotcurlasyncespreprocessortddpropertiescloneajaxvarUint8ClampedArrayexitwindowsenvutil.inspectinferencefseventsletmkdirsaccessorvariables in cssparentscss lessES2017Uint16ArrayfunctionsbcryptArray.prototype.includesduplextelephoneESperformancedependency managerTypedArraybootstrap lessdefaultprotoObject.fromEntriescommandcolourregular expressionsdeep-copyInt32ArrayArray.prototype.findLastIndexopensregularairbnbdropES2022linkchineseiteratorObject.definePropertyvalidUint32Arraynodejsdifftc39l10nstringifyTypeScriptcolorPromiseremovetestvalidationchromepersistentlazyWebSocketidhookformUnderscorecall-bindparseregexpstatustostringtagRxi18njsonpathdom-testing-librarycorestylearraysvalidateexpressionprogressmime-dbRegExp#flagsObject.entriesArray.prototype.flattenIteratormobilecoercibleoperating-systemWeakSetqueuea11ybuffersoffsetshellmoment3dsuperagenteslintconfigmkdirtakemonorepoObject.keyssettingsuser-streamsjsontstimeArray.prototype.flatECMAScript 5fullwidthES2018
1.0.0

11 days ago