1.0.7 • Published 2 years ago

@heyveryouaire/string_and_more v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Module using TS

lower()

const { lower } = require("heyveryouaire/string_and_more") 
lower("string")

upper()

const { upper } = require("heyveryouaire/string_and_more") 
upper("string")

getPersonGender()

const { getPersonGender } = require("heyveryouaire/string_and_more") 
getPersonGender({
    name: "name",
    sex: "male"
})

How TS module works

tscongif.json

{
  "compilerOptions": {
     /* Language and Environment */
    "target": "es2016",

    /* Modules */
    "module": "commonjs", 
    // ..

    /* Emit */
    "declaration": true, // Generate declaration 
    // ..
    "outDir": "lib",
    // ..
    "esModuleInterop": true,
    // ..
    "forceConsistentCasingInFileNames": true,

    /* Type Checking */
    "strict": true,
    // ..
    /* Completeness */
    // ..
    "skipLibCheck": true,
    "exclude": ["node_modules"]
  }
}

package.json

{
  "main": "lib/index.js",
  "types": "lib/index.d.js",
  "scripts": {
    "build": "tsc"
  },
}

Publish npm module

npm login
...
npm publish --access public
...
npm version 1.1.0 // update version between each publish
...
1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago