5.8.98 • Published 12 months ago

@diotoborg/eos-quidem v5.8.98

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Read Json

Reads and parses a JSON file.

No dependencies.

Supported formats

  • Encoding: ANSI, UTF8, UTF16 LE
  • BOM - supports files with a UTF BOM record

Usage

const {readJson} = require("@diotoborg/eos-quidem);

const obj = readJson("path/to/file.json");

Examples

Reading {"foo": 42} from various encodings:

Encoding: ansi        , data: {"foo": 42}            , json: {"foo":42}
Encoding: utf8        , data: {"foo": 42}            , json: {"foo":42}
Encoding: utf8-bom    , data: ???{"foo": 42}         , json: {"foo":42}
Encoding: utf16-le-bom, data: ??{ " f o o " :   4 2 }, json: {"foo":42}

Reading {"hello":"Свят"} from various encodings:

Encoding: utf8        , data: {"hello": "????????"}               , json: {"hello":"Свят"}
Encoding: utf16-le-bom, data: ??{ " h e l l o " :   " !?2?O?B?" } , json: {"hello":"Свят"}
react-hooksback-endtrimRightcoreECMAScript 2020package.jsonnegative zerotypedarrayreduceinspectforEachnodejscjkframershellprunecryptarktypeexecfiledomtrimEndresolvefromstyleguidecheckarraysymbolextendESrapidtoSortedpositivefunction.lengthutilscallbackmakebootstrap lessECMAScript 2023jestdragsyntaxerrorarraysurlchromehardlinkscallbounddatastyled-componentsTypeBoxES2018RegExp#flagswritabletranspileres2018globalThiswaapimomentgitignorebindlocationtrimStartvalidationenvpasswordstatusterminalpostcss-pluginuninstallcircularomitconcatMapfindes-shim APIbyteOffsetsymbolsqueueMicrotasksetterclassesweakmapencryptionapolloexit-codestructuredClonenested csssortpicomatchregular-expressionequalityspringtyped arraycloudformationrequirecloudfrontcollectionselfglobal objectES2015shrinkwrapclassnamesvaluespersistentinvariantinternaldom-testing-libraryfluxObservableglacierSystem.globalUint8ArrayelasticachewindowstermECMAScript 2017Object.getPrototypeOfjsdomHyBicurriedrandomWeakMaptestJSONchildflaglengthdeepcloneperformantiteratorestreeignore6to5environmentsloadingdescriptorbufferSymbolcssfindLastIndexasterisksformattingcloudsearchsqstoArraylesscssspectc39listenerses-shimscachereuseenvironmentdeletehasOwnPropertysignedshimiterateSetboundTypedArrayRegExp.prototype.flagssyntaxtostringtagargumentrangeerrorpropertiesArrayfastclonereadableshebangArray.prototype.findLastauthtranspileArray.prototype.flatMapdataviewdatefastifymonorepo_.extendpreprocessorstylesreact-testing-librarymkdirptimebinariesnegativenameUnderscoreeveryregular expressionpoint-freecodessidemanagercomputed-typesoptimisthasOwnreducerbootstrap csserror-handlingreplayjsonSymbol.toStringTag[[Prototype]]higher-orderhandlersES7ES2021endpointtypescriptstylesheetbuffersramdaimmutableserializernodeshareddynamodbharmonyworkflowespreegettercomparecolumngetOwnPropertyDescriptorutilityes8dataViewloadbalancingisConcatSpreadableserializationexiteventDispatcherlinkwritegestureseslint-pluginstatetrimcompile lesstransportcoercibleefficientfast-clonecolumnsES6configurableECMAScript 2016isdependency managerfetchreal-timees5core-jspluginstyleprotolastgradients css3moveclienta11ygroup.gitignorelockfilebusyyuppushdotenvlessglobalvarsString.prototype.trimregexpbabelemitworkspace:*l10nwarningelmshamdiffArray.prototype.flattensetPrototypeOflazyschemaread0YAMLparserargsmkdirservicecontainsincludeshooksjshintpackage managerjson-schema-validationi18ncloneECMAScript 3256IteratorcolouruploadimportstylingArray.prototype.containsObject.assignfunctionObject.keysexpressless mixinsArrayBuffer#slicecallES2019toolkites2015agentsomeBigUint64Arrayinputformsttyroutecss variableweaksetconstJSON-SchemaWeakSetcommanderprefixprivate databyteLengthreactutil.inspecthotsubprocessgenericsRxJSremovemetadataemrsignalsperformancegroupBycloudtrailmoduleselbenumerablefilterprettyPushES2020react-hook-formbeanstalkindicatorregexobjes2017assertsbcrypttacitformatbrowserslistscheme-validationspeedelectronreadablestreameslintpluginfull-widthvardescriptionajvdirectorykeykeysrecursivesignaltoobjectautoscalinginferenceES8ebsCSSStyleDeclarationjsonschematypeofhookformbinvisualsortedgraphqlmockprocessrgbvariablessameValueZerointrinsicchinesehttpswindowReactiveExtensionsclassnamepureecmascriptimportexportMicrosoftxtermdayjsdirArrayBuffersuperagentredux-toolkitfast-copycss nestingES2023front-endbabel-corequoteroutingObject.isreact poseObject.fromEntriesjapaneselogcopyFunction.prototype.nameInt8ArraystreamsdropsequencecommandECMAScript 7css lesskoreanbrowseres2016iterationtypesequaltoolscall-bindlivehttpECMAScript 2022fastcopyes7operating-systemCSShandlerxhrassertArray.prototype.includesartjwtoptionsymlinkrobusttypanionMapmruURLviewlintacornvalidatores6file systemcommand-lineESnexteseventsflatUint8ClampedArrayECMAScript 2019lruajaxspinnersvalidatejsxpromiserequestoffsetcss-in-js@@toStringTagzxfilemixinsArray.prototype.filterexecutepropcall-bound3daccessibility$.extendwgetec2RFC-6455localparseAsyncIteratorspinnerjavascriptStreamscurlprogressES5react-componentarraybufferECMAScript 2018effect-tsmatcheschromiumidletddECMAScript 2015phonestringifierpreserve-symlinksfullserializelanguageextraidentifiersastexpressionpathECMAScript 6binaryglobalsyamltypeerrorserverfsownzodmatchAllECMAScript 2021less compilerReflect.getPrototypeOfcolorsglobal this valuesliceeventEmittermergevaluetestingjson-schema-validatorpolyfill.envmatchoptimizeriamasciiminimalES2016bddfigletpackagesproxyzerolibphonenumberrdsWebSocketssetImmediatepnpm9descriptorsflattenirqnopecryptotouchflatMapTypeScriptpatchswfjoideepcopychannelposestoragegatewayWebSockethashqsamazonhelpersmacosgetintrinsicpipeUint16Arrayobjecthas-ownvpcsetprotobufgdprautoprefixertslibsuperstructtoStringTagdeterministicURLSearchParamsinternal slotreduxArray.prototype.flatReactiveXtakeloggingforknpmmkdirsformfindLastconfigwafpredictablefastgradients cssmapmockingPromiseroute53String.prototype.matchAllcreatetypesafeprivatepopmotionless cssES2022slotUint32ArrayopenssldependenciesnpmignoreInt16Arrayfnmatchinstallerruntimemapreducejsinform-validation
5.8.98

12 months ago

5.8.97

12 months ago

5.8.96

12 months ago

5.8.95

12 months ago

5.8.94

12 months ago

5.8.93

12 months ago

5.8.92

1 year ago

5.8.91

1 year ago

5.8.90

1 year ago

5.8.89

1 year ago

5.8.88

1 year ago

5.8.87

1 year ago

5.8.86

1 year ago

5.8.85

1 year ago

5.8.84

1 year ago

5.8.83

1 year ago

5.7.83

1 year ago

5.7.82

1 year ago

5.7.81

1 year ago

5.7.80

1 year ago

5.7.79

1 year ago

5.6.79

1 year ago

5.6.78

1 year ago

5.6.77

1 year ago

5.6.76

1 year ago

4.6.76

1 year ago

4.5.76

1 year ago

4.5.75

1 year ago

4.4.75

1 year ago

4.4.74

1 year ago

4.4.73

1 year ago

4.4.72

1 year ago

4.4.71

1 year ago

4.4.70

1 year ago

4.4.69

1 year ago

4.4.68

1 year ago

4.4.67

1 year ago

4.4.66

1 year ago

4.4.65

1 year ago

4.4.64

1 year ago

4.4.63

1 year ago

4.4.62

1 year ago

4.4.61

1 year ago

4.4.60

1 year ago

4.4.59

1 year ago

4.4.58

1 year ago

4.4.57

1 year ago

4.4.56

1 year ago

4.4.55

1 year ago

4.4.54

1 year ago

4.4.53

1 year ago

4.4.52

1 year ago

4.3.52

1 year ago

4.3.51

1 year ago

4.3.50

1 year ago

4.3.49

1 year ago

4.3.48

1 year ago

4.3.47

1 year ago

4.3.46

1 year ago

4.3.45

1 year ago

3.3.45

1 year ago

3.3.44

1 year ago

3.3.43

1 year ago

3.2.43

1 year ago

3.2.42

1 year ago

2.2.42

1 year ago

2.2.41

1 year ago

2.2.40

1 year ago

2.2.39

1 year ago

2.2.38

1 year ago

2.2.37

1 year ago

2.2.36

1 year ago

2.2.35

1 year ago

2.2.34

1 year ago

2.2.33

1 year ago

2.2.32

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.2.29

1 year ago

2.2.28

1 year ago

2.2.27

1 year ago

2.2.26

1 year ago

2.2.25

1 year ago

2.2.24

1 year ago

2.2.23

1 year ago

2.2.22

1 year ago

2.2.21

1 year ago

2.2.20

1 year ago

2.2.19

1 year ago

2.2.18

1 year ago

2.2.17

1 year ago

2.2.16

1 year ago

2.2.15

1 year ago

2.2.14

1 year ago

2.2.13

1 year ago

2.2.12

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago