@tollbrothers/isstring
v1.1.1
Published
Check if passed parameter is a string. Returns true or false.
Downloads
3
Keywords
Readme
isString package
Is the string a string?
const isString = require('isstring')
console.log('isString', isString(3))
console.log('isString', isString([3]))
console.log('isString', isString('test'))
How was this package created?
- Created the
isString
project on Github as an empty repo for thetollbros
Github org. - Locally created a
packages
directory. - Checked out the
isString
repo in thepackages
directory. - Within the
packages/isString
directory, runnpm init --scope=tollbrothers
and chose all the defaults. - Created the
index.js
file inpackages/isString
, this matches the defaultpackage.json
(seemain
key).
How was this package tested locally?
- Within the
packages/isString
directory, runnpm link
. This created thepackage-lock.json
file. - Went back to the
packages
directory and created aisStringTEST
directory. - Created the
script.js
file inpackages/isStringTEST
. - Within the
packages/isStringTEST
directory, runnpm link isstring
. This linked theisString
package to the test script. - Run the script via
node script.js
How do we publish changes?
- Publishing has been automated by the Semantic Release Workflow
Semantic Release Workflow
Basically, follow the commit message format below. Then when the commit is posted on the main
branch semantic-release will do its thing and publish a new version on merge to main
or a direct commit to main
.
Things to consider
- You can publish code without commiting it. Not sure why you would but there are no guards to prevent you from doing so.
- On github, the org is
tollbros
- On npm, the org is
tollbrothers