append-type
Advanced tools
Comparing version 1.0.1 to 1.0.2
'use strict'; | ||
/*! | ||
* append-type | ISC (c) Shinnosuke Watanabe | ||
* https://github.com/shinnn/append-type | ||
*/ | ||
function appendType(val) { | ||
module.exports = function appendType(val) { | ||
if (val === undefined) { | ||
@@ -18,3 +14,1 @@ return 'undefined'; | ||
} | ||
module.exports = appendType; |
{ | ||
"name": "append-type", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Stringify the value with appending its type: 10 → '10 (number)'", | ||
"author": "Shinnosuke Watanabe (https://github.com/shinnn)", | ||
"repository": "shinnn/append-type", | ||
"author": "Shinnosuke Watanabe (https://github.com/shinnn)", | ||
"scripts": { | ||
"prebuild": "eslint --ext=.js,.mjs --fix --format=codeframe .", | ||
"build": "rollup --config=node:module", | ||
"pretest": "npm run-script build", | ||
"test": "istanbul cover test.js" | ||
}, | ||
"license": "ISC", | ||
"license": "MIT-0", | ||
"module": "index.mjs", | ||
@@ -19,2 +13,8 @@ "files": [ | ||
], | ||
"scripts": { | ||
"prebuild": "eslint .", | ||
"build": "rollup --config=node:module", | ||
"pretest": "npm run-script build", | ||
"test": "nyc node test.js" | ||
}, | ||
"keywords": [ | ||
@@ -30,13 +30,17 @@ "string", | ||
"devDependencies": { | ||
"@shinnn/eslint-config": "^5.4.0", | ||
"eslint": "^4.17.0", | ||
"istanbul": "^0.4.5", | ||
"nop": "^1.0.0", | ||
"rollup": "^0.55.5", | ||
"rollup-config-module": "^2.0.0", | ||
"tape": "^4.8.0" | ||
"@shinnn/eslint-config": "^6.8.6", | ||
"eslint": "^5.10.0", | ||
"lodash": "^4.17.11", | ||
"nyc": "^13.1.0", | ||
"nyc-config-common": "^1.0.1", | ||
"rollup": "^0.67.4", | ||
"rollup-config-module": "^2.0.2", | ||
"tape": "^4.9.1" | ||
}, | ||
"eslintConfig": { | ||
"extends": "@shinnn" | ||
}, | ||
"nyc": { | ||
"extends": "nyc-config-common" | ||
} | ||
} |
# append-type | ||
[![npm version](https://img.shields.io/npm/v/append-type.svg)](https://www.npmjs.com/package/append-type) | ||
[![Build Status](https://travis-ci.org/shinnn/append-type.svg?branch=master)](https://travis-ci.org/shinnn/append-type) | ||
[![Build Status](https://travis-ci.com/shinnn/append-type.svg?branch=master)](https://travis-ci.com/shinnn/append-type) | ||
[![Coverage Status](https://img.shields.io/coveralls/shinnn/append-type.svg)](https://coveralls.io/r/shinnn/append-type) | ||
@@ -18,3 +18,3 @@ | ||
[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/getting-started/what-is-npm). | ||
[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/). | ||
@@ -34,3 +34,3 @@ ``` | ||
*value*: any type | ||
Return: `String` | ||
Return: `string` | ||
@@ -68,2 +68,2 @@ Essentially, it returns `String(value) + ' (' + typeof value + ')'`. | ||
[ISC License](./LICENSE) © 2018 Shinnosuke Watanabe | ||
[MIT No Attribution](./LICENSE) © 2019 Shinnosuke Watanabe |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
spdx disjunction for an artifact's license information
Licensespdx disjunction for an artifact's license information
Found 1 instance in 1 package
spdx disjunction for an artifact's license information
Licensespdx disjunction for an artifact's license information
Found 1 instance in 1 package
3818
8
19