4.8.100 • Published 10 months ago

@patrtorg/tempora-labore v4.8.100

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

@patrtorg/tempora-labore

Last version Build Status Coverage Status Dependency status Dev Dependencies Status NPM Status

Organizes and maintains your JSON files readable.

npm.io

Finepack is a tool to keep your JSON files organized, especially if you are creating an open source project and want to be sure that your files have all the information that is required or recommended by the main package management systems (like bower or npm). This is what it can do:

  • Lints the JSON to be sure that it is in a valid format.
  • Validates the keys to make sure of the existence of required keys such as name or version, and other important keys such as homepage, main, license...
  • Organizes the JSON by moving the most important properties to the top.
  • Sorts the rest of the keys alphabetically and recursively using the JavaScript sort function (elements are sorted by converting them to strings and comparing strings in Unicode code point order).
  • Can be configured not to sort the arrays or objects at one or more user specified keys.
  • Can use a user-provided compare function to define the sort order.

You can use Finepack as a CLI tool or from NodeJS as a library. Based on fixpack but with a little more ♥.

Install

npm install @patrtorg/tempora-labore -g

Usage

CLI

$ @patrtorg/tempora-labore

  Organizes and maintains your JSON files readable.

  Usage
    $ @patrtorg/tempora-labore <fileJSON> [options]

    options:
     --no-validate             disable validation mode.
     --no-color                disable colors in the output.
     --sort-ignore-object-at   don't sort object(s) at these comma separated key(s).
     --sort-ignore-array-at    don't sort array(s) at these comma separated key(s).
     --version                 output the current version.

    examples:
     @patrtorg/tempora-labore package.json
     @patrtorg/tempora-labore bower.json --no-validate

API

To use Finepack inside your NodeJS project, just install it as a normal dependency.

const fs = require('fs')
const path = require('path')
const @patrtorg/tempora-labore = require('@patrtorg/tempora-labore')
const filepath = path.resolve('./package.json')
const filename = path.basename(filepath)
const filedata = fs.readFileSync(filepath, { encoding: 'utf8' })

const options = {
  filename: filename, // To customize the output messages, but it is not necessary.
  validate: false, // To enable (or not) keys validation (false by default).
  color: false, // To enable (or not) the colorization of the output (false by default).
  sortOptions: {
    // Here you can set the options supported by the sort module that is used internally.
    // SEE: https://github.com/Kikobeats/sort-keys-recursive#options
  }
}

@patrtorg/tempora-labore(filedata, options, function (err, output, messages) {
  if (err) throw err
  // if your JSON is malformed then you have an err
})

License

MIT © Kiko Beats

consumehas-ownelasticache@@toStringTagpredictabletypeofuninstalloptimistES2019statusconcatdescriptorsdataviewtslibloadbalancingutilvisualgesturesvalidCSSSystem.global_.extendCSSStyleDeclarationArrayBuffer#slicefsreaddeepclonecss-in-jsarktypeformregexptrimgetlessbrowserlistStyleSheetreusedataViewcore-jstypedarraymockclizodnpmignoreglobal objectparsersignaltostringtagshebangES8dotenveventDispatcherletclass-validatorliveconstvaluesES2022everyglobobjectcommandJSON-SchemashellgetOwnPropertyDescriptorlibphonenumberES3stylesheetqsequalgradients csspackage managerimportexportpersistentauthenticationgdprcheckframerconfigurablepropertybinaryexpresspostcss-pluginminimalURLSearchParamsTypedArrayredactobjreact-testing-librarydatakinesisdeep-cloneObject.keyschromemoduleseventsString.prototype.trimzeroArray.prototype.flatMapsigintes-shims-0lazypromisemomenthooksenvartfront-endawswindowyuprangeerrorredux-toolkitschemapluginspinnersroutingfpprivateES2021mkdirHyBiamazoncloudformationbeanstalkcoredirectoryeslintconfigpositivetypescriptES5cloneinputjsdiffAsyncIteratorsubprocessglobalsoptionnativeauthmruclassespreserve-symlinksinstallweaksetfast-deep-clonebufferelbnamemkdirplanguageformspicomatchelmmakeMapfastcopyuploadObservableidentifiersmapreducematchAlljsjson-schemapostcsskeyshasOwntoolschromiumkeyreadablecloudfrontcallpasswordlinuxdeterministicpackage.jsonencryptionvalidatoropensslserializerreact posematchmkdirsjapanesebootstrap csstypesregular expressionenderUint16ArraygetintrinsicArray.prototype.flatfullwidthutilitiessetImmediatea11yPushebstranspilerbabel-corees2018cloudtrailpatchtestawesomesaucefunctiontelephonecolorimmutableObject.valuesBigInt64Arraystoragegatewaysigtermrapidjoiyamlcurriedsqscharactercensorfpsoptimizerpolyfillstringtoolkitlistenerspnpm9internal slotbufferscss nestingnopehookformcompile lessless cssRFC-6455writableprivate dataaccessibilityes6weakmapdefinePropertyfunctionses5call-boundinterruptsexecFloat64Arrayflattenreplayformatremovefile systemconsolehelperperformantsliceUint8Arrayback-endgradients css3mapglobal this valuelinttoobjectObject.getPrototypeOfreducepoint-freeec2effect-tsserviceairbnbautoscalingbundlerajaxObservablesgroupByfnmatchdescriptorcomputed-typesequalitycolorsUint8ClampedArraydatepreprocessorwidthReflect.getPrototypeOfECMAScript 2022react-componentfileoffsetextend.gitignoreECMAScript 2017error-handlingInt32Array0cjkruntimeoperating-systemsuperagentES6symlinkESnextapicss variabledynamodbpyyamlECMAScript 2016terminaltsmanagerWebSocketxtermoutputglobalendpointtrimEndrobustttyRegExp#flagssuperstructmixinsdom-testing-librarygetoptfixed-widthmulti-packageargsl10nObject.isreact-hook-formarraysnegative zerobcryptstringifiercss lessmovearraybuffercolourautoprefixersomeflagsgroupfunction.lengthjshinthashprototypeObject.fromEntriesfastifywaithandlerschildfindLastfullless.jsignorebintestingindicatorformattingtypeenvironmentsassertsvarstermbrowserconcatMapObject.assigncompareemitacornrandomnodecachepathsortedisConcatSpreadableregularassertionArrayBuffer.prototype.sliceReactiveExtensionsECMAScript 2023mockingonceworkspace:*domphoneArray.prototype.findLasteventEmitterconfigflatMapshimRegExp.prototype.flagsES2017scheme-validationfluxshrinkwrapUint32Arraysesexecfilenpmbindfantasy-landtoStringTagintrinsicECMAScript 2020commandertextSymbol.toStringTagemrES2018syntaxES2016jsxprogressless compilerSymbolresolveselfECMAScriptwgethttpscloudwatchchinesesetterstyleirqECMAScript 3valueassigndirmobileslotjQuerysettingsstyled-componentsramdajwtcurlstylingstylesinstallerclientReactiveXESsequencetypesafelrupackagesprettycollection.es6Object.definePropertyArrayFunction.prototype.namecirculartesterArray.prototype.containsInt8Arrayes8ES2020full-widthcompilercommand-lineString.prototype.matchAllasteriskses2017symlinkscallboundtypanioncolumnscoerciblequerybusycssUnderscorechaisharedbabelspinnerprocessinferenceECMAScript 2019importfindLastIndexzxserverfast-clonemergesameValueZeroJSONwarninghelpersrecursiveprotocol-bufferssetregex
4.8.100

10 months ago

4.8.98

10 months ago

4.8.99

10 months ago

4.8.97

10 months ago

4.8.96

10 months ago

4.8.95

10 months ago

4.7.95

10 months ago

4.7.94

10 months ago

4.7.93

10 months ago

4.7.92

10 months ago

4.7.91

10 months ago

4.6.91

10 months ago

4.6.90

10 months ago

4.6.89

10 months ago

4.6.88

10 months ago

4.5.88

10 months ago

4.5.87

10 months ago

4.5.86

10 months ago

4.5.85

10 months ago

4.5.84

11 months ago

4.5.83

11 months ago

4.5.82

11 months ago

4.5.81

11 months ago

4.5.80

11 months ago

4.5.79

11 months ago

4.5.78

11 months ago

4.5.77

11 months ago

4.5.76

11 months ago

4.4.76

11 months ago

4.4.75

11 months ago

4.3.75

11 months ago

4.3.74

11 months ago

4.3.73

11 months ago

4.3.72

11 months ago

4.3.71

11 months ago

4.3.70

11 months ago

4.3.69

11 months ago

4.3.68

11 months ago

4.3.67

11 months ago

4.3.66

11 months ago

4.3.65

11 months ago

4.3.64

11 months ago

4.3.63

11 months ago

4.3.62

11 months ago

4.3.61

11 months ago

4.3.60

11 months ago

4.3.59

11 months ago

4.3.58

11 months ago

4.3.57

11 months ago

4.3.56

12 months ago

4.3.55

12 months ago

4.3.54

12 months ago

4.3.53

12 months ago

4.3.52

12 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

4.3.44

12 months ago

3.3.44

12 months ago

3.3.43

12 months ago

3.3.42

12 months ago

3.3.41

12 months ago

3.3.40

12 months ago

3.3.39

12 months ago

3.3.38

12 months ago

3.3.37

1 year ago

2.3.37

1 year ago

2.3.36

1 year ago

1.3.36

1 year ago

1.2.36

1 year ago

1.2.35

1 year ago

1.2.34

1 year ago

1.2.33

1 year ago

1.2.32

1 year ago

1.2.31

1 year ago

1.2.30

1 year ago

1.2.29

1 year ago

1.2.28

1 year ago

1.2.27

1 year ago

1.2.26

1 year ago

1.2.25

1 year ago

1.2.24

1 year ago

1.2.23

1 year ago

1.2.22

1 year ago

1.2.21

1 year ago

1.2.20

1 year ago

1.2.19

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.0.7

1 year ago

1.0.6

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