5.8.98 • Published 10 months ago

@diotoborg/eos-quidem v5.8.98

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

10 months ago

5.8.97

10 months ago

5.8.96

10 months ago

5.8.95

10 months ago

5.8.94

10 months ago

5.8.93

10 months ago

5.8.92

10 months ago

5.8.91

10 months ago

5.8.90

10 months ago

5.8.89

10 months ago

5.8.88

10 months ago

5.8.87

10 months ago

5.8.86

10 months ago

5.8.85

10 months ago

5.8.84

10 months ago

5.8.83

10 months ago

5.7.83

10 months ago

5.7.82

10 months ago

5.7.81

10 months ago

5.7.80

10 months ago

5.7.79

10 months ago

5.6.79

10 months ago

5.6.78

10 months ago

5.6.77

11 months ago

5.6.76

11 months ago

4.6.76

11 months ago

4.5.76

11 months ago

4.5.75

11 months ago

4.4.75

11 months ago

4.4.74

11 months ago

4.4.73

11 months ago

4.4.72

11 months ago

4.4.71

11 months ago

4.4.70

11 months ago

4.4.69

11 months ago

4.4.68

11 months ago

4.4.67

11 months ago

4.4.66

11 months ago

4.4.65

11 months ago

4.4.64

11 months ago

4.4.63

11 months ago

4.4.62

11 months ago

4.4.61

11 months ago

4.4.60

11 months ago

4.4.59

11 months ago

4.4.58

11 months ago

4.4.57

11 months ago

4.4.56

11 months ago

4.4.55

11 months ago

4.4.54

11 months ago

4.4.53

11 months ago

4.4.52

11 months ago

4.3.52

11 months ago

4.3.51

12 months ago

4.3.50

12 months ago

4.3.49

12 months ago

4.3.48

12 months ago

4.3.47

12 months ago

4.3.46

12 months ago

4.3.45

12 months ago

3.3.45

12 months ago

3.3.44

12 months ago

3.3.43

12 months ago

3.2.43

12 months ago

3.2.42

12 months ago

2.2.42

12 months ago

2.2.41

12 months ago

2.2.40

12 months ago

2.2.39

12 months ago

2.2.38

12 months ago

2.2.37

12 months ago

2.2.36

12 months ago

2.2.35

12 months 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