Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

orcid

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orcid - npm Package Compare versions

Comparing version 0.0.5 to 1.0.0

dist/cli/index.d.ts

58

package.json
{
"name": "orcid",
"version": "0.0.5",
"version": "1.0.0",
"description": "Utilities for working with ORCID identifiers and service.",
"sideEffects": false,
"type": "module",
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"bin": "./dist/orcid.cjs",
"keywords": [

@@ -23,10 +30,4 @@ "Open Science",

},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"bin": "./dist/orcid.js",
"files": [
"dist"
],
"scripts": {
"prepublishOnly": "npm run build && npm run test",
"clean": "rm -rf dist",

@@ -36,30 +37,25 @@ "copy:version": "echo \"const version = '\"$npm_package_version\"';\nexport default version;\" > src/version.ts",

"link": "npm run unlink; npm link;",
"test": "npm run copy:version && jest",
"test:watch": "npm run copy:version && jest --watchAll",
"dev": "npm run link && esbuild src/cli/index.ts --bundle --outfile=dist/orcid.js --platform=node --watch",
"lint": "npm run copy:version && eslint \"src/**/*.ts\" -c .eslintrc.js --max-warnings 1",
"lint:format": "prettier --check src/*.ts src/**/*.ts",
"build:esm": "tsc --module es2015 --outDir dist/esm",
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"declarations": "tsc --declaration --emitDeclarationOnly --declarationMap --outDir dist/types",
"build:cli": "esbuild src/cli/index.ts --bundle --outfile=dist/orcid.js --platform=node",
"build": "npm-run-all -l clean copy:version -p build:cli build:cjs build:esm declarations",
"prepublishOnly": "npm run build && npm run test"
"dev": "npm run link && esbuild src/cli/index.ts --bundle --outfile=dist/orcid.cjs --platform=node --watch",
"build:cli": "esbuild src/cli/index.ts --bundle --outfile=dist/orcid.cjs --platform=node",
"lint": "eslint \"src/**/*.ts*\" -c ./.eslintrc.cjs",
"lint:format": "prettier --check \"src/**/*.{ts,tsx,md}\"",
"test": "npm run copy:version && vitest run",
"test:watch": "npm run copy:version && vitest watch",
"build:esm": "tsc --project ./tsconfig.json --module es2015 --outDir dist --declaration",
"build": "npm-run-all -l clean -p build:esm build:cli"
},
"devDependencies": {
"@types/jest": "^29.2.3",
"chalk": "^4.1.2",
"commander": "^9.4.1",
"esbuild": "^0.16.12",
"eslint": "^8.21.0",
"@types/node": "^20.2.5",
"chalk": "^5.2.0",
"commander": "^10.0.1",
"esbuild": "^0.17.19",
"eslint": "^8.42.0",
"eslint-config-curvenote": "latest",
"jest": "28.1.3",
"myst-cli-utils": "^0.0.8",
"node-fetch": "^3.3.0",
"myst-cli-utils": "^1.0.0",
"node-fetch": "^3.3.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.0",
"rimraf": "^3.0.2",
"ts-jest": "^28.0.7",
"typescript": "^4.9.3"
"prettier": "^2.8.8",
"typescript": "^5.1.3",
"vitest": "^0.32.0"
}
}

@@ -34,3 +34,3 @@ # orcid

```ts
import orcid from 'orcid';
import { orcid } from 'orcid';

@@ -54,1 +54,14 @@ const isValid = orcid.validate('https://orcid.org/0000-0002-7859-8394');

- `strict`: only accept the ID part without the URL
---
As of v1.0.0 this package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
---
<p style="text-align: center; color: #aaa; padding-top: 50px">
Made with love by
<a href="https://curvenote.com" target="_blank" style="color: #aaa">
<img src="https://curvenote.dev/images/icon.png" style="height: 1em" /> Curvenote
</a>
</p>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc