{"_id":"bcp-47","_rev":"3635682","name":"bcp-47","description":"Parse and stringify BCP 47 language tags","dist-tags":{"latest":"2.1.0"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2024-10-21T06:06:05.000Z","created":"2016-02-21T17:51:27.457Z","2.1.0":"2021-11-08T10:19:57.355Z","2.0.1":"2021-11-04T11:14:24.626Z","2.0.0":"2021-03-28T14:32:04.228Z","1.0.8":"2020-10-26T17:40:37.929Z","1.0.7":"2020-01-27T08:51:33.666Z","1.0.6":"2019-12-22T21:26:52.556Z","1.0.5":"2019-05-14T08:50:02.301Z","1.0.4":"2018-04-14T09:34:58.715Z","1.0.3":"2017-06-20T09:14:27.729Z","1.0.2":"2016-07-23T21:36:37.573Z","1.0.0":"2016-02-21T17:51:27.457Z"},"users":{},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47.git"},"versions":{"2.1.0":{"name":"bcp-47","version":"2.1.0","description":"Parse and stringify BCP 47 language tags","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","parse"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"is-alphabetical":"^2.0.0","is-alphanumerical":"^2.0.0","is-decimal":"^2.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","is-hidden":"^2.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.46.0"},"scripts":{"prepublishOnly":"npm run build && npm run format","build":"rimraf \"{lib,test}/**/*.d.ts\" \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"complexity":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"630899fa519beec0e209ff0709089ea0212c8d71","homepage":"https://github.com/wooorm/bcp-47#readme","_id":"bcp-47@2.1.0","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"shasum":"7e80734c3338fe8320894981dccf4968c3092df6","size":7916,"noattachment":false,"key":"/bcp-47/-/bcp-47-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bcp-47/download/bcp-47-2.1.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47_2.1.0_1636366797162_0.621411402130158"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T16:18:09.730Z","publish_time":1636366797355,"_cnpm_publish_time":1636366797355},"2.0.1":{"name":"bcp-47","version":"2.0.1","description":"Parse and stringify BCP 47 language tags","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","parse"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"is-alphabetical":"^2.0.0","is-alphanumerical":"^2.0.0","is-decimal":"^2.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","is-hidden":"^2.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.46.0"},"scripts":{"prepublishOnly":"npm run build && npm run format","build":"rimraf \"{lib,test}/**/*.d.ts\" \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"complexity":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"ef03d8dc5bd6962da8273a3384e1cf137546f990","homepage":"https://github.com/wooorm/bcp-47#readme","_id":"bcp-47@2.0.1","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"shasum":"f549f1164fb153482d5413ecd7fe53893f086661","size":7829,"noattachment":false,"key":"/bcp-47/-/bcp-47-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/bcp-47/download/bcp-47-2.0.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47_2.0.1_1636024464476_0.5359701149088758"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T16:18:09.624Z","publish_time":1636024464626,"_cnpm_publish_time":1636024464626},"2.0.0":{"name":"bcp-47","version":"2.0.0","description":"Parse and stringify BCP 47 language tags","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","parse"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"is-alphabetical":"^2.0.0","is-alphanumerical":"^2.0.0","is-decimal":"^2.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","is-hidden":"^2.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.38.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"{lib/**,test/**,}*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test/index.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test/index.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"complexity":"off","import/no-mutable-exports":"off","no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"835b105802d1146929997a59717ab29cad80b7c0","homepage":"https://github.com/wooorm/bcp-47#readme","_id":"bcp-47@2.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.2","dist":{"shasum":"c1d5d8bc97b5eef369c1a6d6642f371953394613","size":7329,"noattachment":false,"key":"/bcp-47/-/bcp-47-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bcp-47/download/bcp-47-2.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47_2.0.0_1616941924082_0.5290954043651865"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T16:18:08.754Z","publish_time":1616941924228,"_cnpm_publish_time":1616941924228},"1.0.8":{"name":"bcp-47","version":"1.0.8","description":"Parse and stringify BCP 47 language tags","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","parse"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"is-alphabetical":"^1.0.0","is-alphanumerical":"^1.0.0","is-decimal":"^1.0.0"},"devDependencies":{"browserify":"^17.0.0","is-hidden":"^1.0.0","not":"^0.1.0","nyc":"^15.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","tape":"^5.0.0","tinyify":"^3.0.0","xo":"^0.34.0"},"scripts":{"format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","build-bundle":"browserify index.js -s bcp47 -o bcp-47.js","build-mangle":"browserify index.js -s bcp47 -p tinyify -o bcp-47.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"eqeqeq":["error","always",{"null":"ignore"}],"no-eq-null":"off","no-multi-assign":"off","unicorn/explicit-length-check":"off","unicorn/no-fn-reference-in-iterator":"off","unicorn/prefer-includes":"off"},"ignores":["bcp-47.js"]},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"27adb83c83d6c0d2722c7a5f368b8c72b525b407","homepage":"https://github.com/wooorm/bcp-47#readme","_id":"bcp-47@1.0.8","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"shasum":"bf63ae4269faabe7c100deac0811121a48b6a561","size":6509,"noattachment":false,"key":"/bcp-47/-/bcp-47-1.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/bcp-47/download/bcp-47-1.0.8.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47_1.0.8_1603734037805_0.33432315116882805"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T16:18:07.870Z","publish_time":1603734037929,"_cnpm_publish_time":1603734037929},"1.0.7":{"name":"bcp-47","version":"1.0.7","description":"Parse and stringify BCP 47 language tags","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","parse"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"is-alphabetical":"^1.0.0","is-alphanumerical":"^1.0.0","is-decimal":"^1.0.0"},"devDependencies":{"browserify":"^16.0.0","is-hidden":"^1.1.1","not":"^0.1.0","nyc":"^15.0.0","prettier":"^1.11.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","tinyify":"^2.4.3","xo":"^0.25.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify index.js -s bcp47 > bcp-47.js","build-mangle":"browserify index.js -s bcp47 -p tinyify > bcp-47.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"unicorn/prefer-includes":"off"},"ignores":["bcp-47.js"]},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"plugins":["preset-wooorm",["toc",{"heading":"contents"}]]},"gitHead":"25de0b2993ed2f2ae36eaf04fb782e309b8102c7","homepage":"https://github.com/wooorm/bcp-47#readme","_id":"bcp-47@1.0.7","_nodeVersion":"13.0.1","_npmVersion":"6.13.6","dist":{"shasum":"521eb1933ff3db971c995ffa1a80aa922d884091","size":6497,"noattachment":false,"key":"/bcp-47/-/bcp-47-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/bcp-47/download/bcp-47-1.0.7.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47_1.0.7_1580115093533_0.9613424499977206"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T16:18:07.764Z","publish_time":1580115093666,"_cnpm_publish_time":1580115093666},"1.0.6":{"name":"bcp-47","version":"1.0.6","description":"Parse and stringify BCP 47 language tags","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","parse"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"is-alphabetical":"^1.0.0","is-alphanumerical":"^1.0.0","is-decimal":"^1.0.0"},"devDependencies":{"browserify":"^16.0.0","is-hidden":"^1.1.1","not":"^0.1.0","nyc":"^14.0.0","prettier":"^1.11.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","tinyify":"^2.4.3","xo":"^0.25.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify index.js -s bcp47 > bcp-47.js","build-mangle":"browserify index.js -s bcp47 -p tinyify > bcp-47.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"unicorn/prefer-includes":"off"},"ignores":["bcp-47.js"]},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"bc062bd7ac17d0fba4e849210fcf51901e947328","homepage":"https://github.com/wooorm/bcp-47#readme","_id":"bcp-47@1.0.6","_nodeVersion":"13.0.1","_npmVersion":"6.13.4","dist":{"shasum":"de83a3e81634483910cc614c536f0b851eac4adc","size":6332,"noattachment":false,"key":"/bcp-47/-/bcp-47-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/bcp-47/download/bcp-47-1.0.6.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47_1.0.6_1577050012383_0.1242747578439054"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T16:18:07.640Z","publish_time":1577050012556,"_cnpm_publish_time":1577050012556},"1.0.5":{"name":"bcp-47","version":"1.0.5","description":"Parse and stringify BCP 47 language tags","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","parse"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"is-alphabetical":"^1.0.0","is-alphanumerical":"^1.0.0","is-decimal":"^1.0.0"},"devDependencies":{"browserify":"^16.0.0","is-hidden":"^1.1.1","not":"^0.1.0","nyc":"^14.0.0","prettier":"^1.11.0","remark-cli":"^6.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.0.0","tinyify":"^2.4.3","xo":"^0.24.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify index.js -s bcp47 > bcp-47.js","build-mangle":"browserify index.js -s bcp47 -p tinyify > bcp-47.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"ignores":["bcp-47.js"]},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"e4a1c7159fc8f2f56103007aae2f9cde0f13491d","homepage":"https://github.com/wooorm/bcp-47#readme","_id":"bcp-47@1.0.5","_nodeVersion":"11.9.0","_npmVersion":"6.9.0","dist":{"shasum":"9cb5e53c3d03e09f7d20f5f0affda1cde296a64f","size":6311,"noattachment":false,"key":"/bcp-47/-/bcp-47-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/bcp-47/download/bcp-47-1.0.5.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47_1.0.5_1557823802095_0.02101423931724744"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T16:18:06.755Z","publish_time":1557823802301,"_cnpm_publish_time":1557823802301},"1.0.4":{"name":"bcp-47","version":"1.0.4","description":"Parse and stringify BCP 47 language tags","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","parse"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js","lib/"],"dependencies":{"is-alphabetical":"^1.0.0","is-alphanumerical":"^1.0.0","is-decimal":"^1.0.0"},"devDependencies":{"browserify":"^16.0.0","esmangle":"^1.0.1","is-hidden":"^1.1.1","not":"^0.1.0","nyc":"^11.0.0","prettier":"^1.11.0","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.0.0","xo":"^0.20.3"},"scripts":{"format":"remark . -qfo && prettier --write **/*.js && xo --fix","build-bundle":"browserify index.js --bare -s bcp47 > bcp-47.js","build-mangle":"esmangle bcp-47.js > bcp-47.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"no-var":"off","prefer-arrow-callback":"off","object-shorthand":"off"}},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"6aef967d555d52fdc33f0c66e9381062fae836a2","homepage":"https://github.com/wooorm/bcp-47#readme","_id":"bcp-47@1.0.4","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"8bee5d1f384fa12b3378b1a4a90dc8418764759d","size":6320,"noattachment":false,"key":"/bcp-47/-/bcp-47-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/bcp-47/download/bcp-47-1.0.4.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47_1.0.4_1523698498577_0.7111544715054283"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T16:18:05.887Z","publish_time":1523698498715,"_cnpm_publish_time":1523698498715},"1.0.3":{"name":"bcp-47","version":"1.0.3","description":"Parse and stringify BCP 47 language tags","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","parse"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js","lib/"],"dependencies":{"is-alphabetical":"^1.0.0","is-alphanumerical":"^1.0.0","is-decimal":"^1.0.0"},"devDependencies":{"browserify":"^14.1.0","esmangle":"^1.0.1","nyc":"^11.0.0","remark-cli":"^3.0.0","remark-preset-wooorm":"^3.0.0","tape":"^4.0.0","xo":"^0.18.0"},"scripts":{"build-md":"remark . -qfo","build-bundle":"browserify index.js --bare -s bcp47 > bcp-47.js","build-mangle":"esmangle bcp-47.js > bcp-47.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run build && npm run lint && npm run test-coverage"},"xo":{"space":true,"esnext":false,"rules":{"unicorn/explicit-length-check":"off","import/no-unassigned-import":"off","complexity":"off","eqeqeq":"off","no-eq-null":"off","max-lines":"off"},"ignores":["bcp-47.js"]},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"2f320cb2b8a3518e9aa2aba0e87477ebb6faa9b5","homepage":"https://github.com/wooorm/bcp-47#readme","_id":"bcp-47@1.0.3","_shasum":"0e95c76da0a0d808be925f5098f36eaf47e634b3","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"0e95c76da0a0d808be925f5098f36eaf47e634b3","size":6346,"noattachment":false,"key":"/bcp-47/-/bcp-47-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/bcp-47/download/bcp-47-1.0.3.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47-1.0.3.tgz_1497950066661_0.13193050702102482"},"directories":{},"_cnpmcore_publish_time":"2021-12-21T16:18:04.758Z","publish_time":1497950067729,"_cnpm_publish_time":1497950067729},"1.0.2":{"name":"bcp-47","version":"1.0.2","description":"Parse and stringify BCP 47 language tags","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","parse"],"files":["index.js","lib/"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"dependencies":{"has":"^1.0.1","is-alphabetical":"^1.0.0","is-alphanumerical":"^1.0.0","is-decimal":"^1.0.0"},"devDependencies":{"browserify":"^13.0.1","esmangle":"^1.0.1","nyc":"^7.0.0","remark-cli":"^1.0.0","remark-comment-config":"^4.0.0","remark-github":"^5.0.0","remark-lint":"^4.0.0","remark-toc":"^3.0.1","remark-usage":"^4.0.0","remark-validate-links":"^4.0.0","tape":"^4.0.0","xo":"^0.16.0"},"scripts":{"build-md":"remark . --quiet --frail","build-bundle":"browserify index.js --bare -s bcp47 > bcp-47.js","build-mangle":"esmangle bcp-47.js > bcp-47.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test","test-coverage":"nyc --reporter lcov tape test","test":"npm run build && npm run lint && npm run test-coverage"},"xo":{"space":true,"rules":{"complexity":"off","eqeqeq":"off","no-eq-null":"off","max-lines":"off"},"ignores":["bcp-47.js","bcp-47.min.js"]},"remarkConfig":{"output":true,"plugins":{"comment-config":null,"github":null,"usage":null,"lint":{"heading-increment":false,"list-item-spacing":false,"no-duplicate-headings":false,"no-missing-blank-lines":false},"toc":{"tight":true,"maxDepth":3},"validate-links":null},"settings":{"bullet":"*"}},"gitHead":"b1658ce6ef42a990205e4c276686b5927a5eb959","homepage":"https://github.com/wooorm/bcp-47#readme","_id":"bcp-47@1.0.2","_shasum":"82431f831eb9812af5bf3ad3b229e0921fbf7301","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"82431f831eb9812af5bf3ad3b229e0921fbf7301","size":6910,"noattachment":false,"key":"/bcp-47/-/bcp-47-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/bcp-47/download/bcp-47-1.0.2.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bcp-47-1.0.2.tgz_1469309795707_0.6618670551106334"},"directories":{},"_cnpmcore_publish_time":"2021-12-21T16:18:03.818Z","publish_time":1469309797573,"_cnpm_publish_time":1469309797573},"1.0.0":{"name":"bcp-47","version":"1.0.0","description":"Parse and stringify BCP 47 language tags","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","parse"],"dependencies":{},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"devDependencies":{"browserify":"^13.0.0","chalk":"^1.0.0","eslint":"^2.0.0","esmangle":"^1.0.1","istanbul":"^0.4.0","jscs":"^2.0.0","jscs-jsdoc":"^1.0.0","remark":"^4.0.0","remark-comment-config":"^3.0.0","remark-github":"^4.0.1","remark-lint":"^3.0.0","remark-usage":"^3.0.0","remark-validate-links":"^3.0.0","retext":"^1.0.0","tape":"^4.4.0"},"scripts":{"build-md":"remark . --quiet --frail","build-bundle":"browserify index.js --bare -s bcp47 > bcp-47.js","build-mangle":"esmangle bcp-47.js > bcp-47.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint-api":"eslint .","lint-style":"jscs --reporter inline .","lint":"npm run lint-api && npm run lint-style","test-api":"node test/index.js","test-coverage":"istanbul cover test/index.js","test":"npm run build && npm run lint && npm run test-coverage"},"gitHead":"eeae053df68b0bfc40f4c43433ef81d69007d371","homepage":"https://github.com/wooorm/bcp-47#readme","_id":"bcp-47@1.0.0","_shasum":"9d9ecceb3bde5d6a7f59e94503e0057ac5d1ac5e","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"9d9ecceb3bde5d6a7f59e94503e0057ac5d1ac5e","size":6947,"noattachment":false,"key":"/bcp-47/-/bcp-47-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bcp-47/download/bcp-47-1.0.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/bcp-47-1.0.0.tgz_1456077082890_0.21886663953773677"},"directories":{},"_cnpmcore_publish_time":"2021-12-21T16:18:02.946Z","publish_time":1456077087457,"_cnpm_publish_time":1456077087457}},"readme":"# bcp-47\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nParse and stringify [BCP 47][spec] language tags.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`parse(tag[, options])`](#parsetag-options)\n    *   [`stringify(schema)`](#stringifyschema)\n    *   [`Schema`](#schema)\n    *   [`function warning(reason, code, offset)`](#function-warningreason-code-offset)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis is a package that can parse BCP 47 language tags to an object representing\nthem, and serialize those objects back into language tags.\nIt supports a forgiving mode to handle incorrect BCP 47 tags and can emit\nwarnings about problems in incorrect tags.\n\n## When should I use this?\n\nYou can use this package if you need to access the data stored in BCP 47\nlanguage tags.\nYou can also use this package if you want to check (lint) or manipulate tags.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]:\n\n```sh\nnpm install bcp-47\n```\n\nIn Deno with [Skypack][]:\n\n```js\nimport * as bcp47 from 'https://cdn.skypack.dev/bcp-47@2?dts'\n```\n\nIn browsers with [Skypack][]:\n\n```html\n<script type=\"module\">\n  import * as bcp47 from 'https://cdn.skypack.dev/bcp-47@2?min'\n</script>\n```\n\n## Use\n\n```js\nimport {parse, stringify} from 'bcp-47'\n\nconst schema = parse('hy-Latn-IT-arevela')\n\nconsole.log(schema)\nconsole.log(stringify(schema))\n```\n\nYields:\n\n```js\n{ language: 'hy',\n  extendedLanguageSubtags: [],\n  script: 'Latn',\n  region: 'IT',\n  variants: ['arevela'],\n  extensions: [],\n  privateuse: [],\n  irregular: null,\n  regular: null }\n'hy-Latn-IT-arevela'\n```\n\n## API\n\nThis package exports the following identifiers: `parse` and `stringify`.\nThere is no default export.\n\n### `parse(tag[, options])`\n\nParse a BCP 47 tag into a language schema.\nNote that the algorithm is case insensitive.\n\n###### `options.normalize`\n\nWhether to normalize legacy tags when possible (`boolean`, default:\n`true`).\nFor example, `i-klingon` does not match the BCP 47 language algorithm but is\nconsidered valid by BCP 47 nonetheless.\nIt is suggested to use `tlh` instead (the ISO 639-3 code for Klingon).\nWhen `normalize` is `true`, passing `i-klingon` or other deprecated tags, is\nhandled as if their suggested valid tag was given instead.\n\n###### `options.forgiving`\n\nBy default, when an error is encountered, an empty object is returned.\nWhen in forgiving mode, all found values up to the point of the error\nare included (`boolean`, default: `false`).\nSo, for example, where by default `en-GB-abcdefghi` an empty object is returned\n(as the language variant is too long), in `forgiving` mode the `language` of\n`schema` is populated with `en` and the `region` is populated with `GB`.\n\n###### `options.warning`\n\nWhen given, `warning` is called when an error is encountered\n([`Function`][warning]).\n\n###### Returns\n\nParsed BCP 47 language tag ([`Schema`][schema]).\n\n###### Throws\n\nWhen `tag` is `null` or `undefined`.\n\n### `stringify(schema)`\n\nCompile a [`schema`][schema] to a BCP 47 language tag.\n\n###### Returns\n\nBCP 47 language tag (`string`).\n\n### `Schema`\n\nA schema represents a language tag.\nA schema is deemed empty when it has neither `language`, `irregular`, `regular`,\nnor `privateuse` (where an empty `privateuse` array is handled as no\n`privateuse` as well).\n\n###### `schema.language`\n\nTwo or three character [ISO 639][iso-639] language code, four character reserved\nlanguage code, or 5 to 8 (inclusive) characters registered language subtag\n(`string`).\nFor example, `en` (English) or `cmn` (Mandarin Chinese).\n\n###### `schema.extendedLanguageSubtags`\n\nSelected three-character [ISO 639][iso-639] codes(`Array<string>`), such as\n`yue` in `zh-yue-HK` (Chinese, Cantonese, as used in Hong Kong SAR).\n\n###### `schema.script`\n\nFour character [ISO 15924][iso-15924] script code (`string`), such as `Latn` in\n`hy-Latn-IT-arevela` (Eastern Armenian written in Latin script, as used in\nItaly).\n\n###### `schema.region`\n\nTwo alphabetical character [ISO 3166-1][iso-3166-1] code or three digit\n[UN M49][un-m49] code (`string`).\nFor example, `CN` in `cmn-Hans-CN` (Mandarin Chinese, Simplified script, as used\nin China) or `419` in `es-419` (Spanish as used in Latin America and the\nCaribbean).\n\n###### `schema.variants`\n\n5 to 8 (inclusive) character language variants (`Array<string>`), such as\n`rozaj` and `biske` in `sl-rozaj-biske` (San Giorgio dialect of Resian dialect\nof Slovenian).\n\n###### `schema.extensions`\n\nList of extensions (`Array<Object>`), each an object containing a one character\n`singleton`, and a list of `extensions` (`string`).\n`singleton` cannot be `x` (case insensitive) and `extensions` must be between\ntwo and eight (inclusive) characters.\nFor example, an extension would be `u-co-phonebk` in `de-DE-u-co-phonebk`\n(German, as used in Germany, using German phonebook sort order), where `u` is\nthe `singleton` and `co` and `phonebk` are its extensions.\n\n###### `schema.privateuse`\n\nList of private-use subtags (`Array<string>`), where each subtag must be between\none and eight (inclusive) characters.\n\n###### `schema.regular`\n\nOne of the `regular` tags (`string`): tags that are seen as something different\nby the algorithm.\nValid values are:\n\n*   `art-lojban`\n*   `cel-gaulish`\n*   `no-bok`\n*   `no-nyn`\n*   `zh-guoyu`\n*   `zh-hakka`\n*   `zh-min`\n*   `zh-min-nan`\n*   `zh-xiang`\n\n###### `schema.irregular`\n\nOne of the `irregular` tags (`string`): tags that are seen as invalid by the\nalgorithm).\nValid values are:\n\n*   `en-GB-oed`\n*   `i-ami`\n*   `i-bnn`\n*   `i-default`\n*   `i-enochian`\n*   `i-hak`\n*   `i-klingon`\n*   `i-lux`\n*   `i-mingo`\n*   `i-navajo`\n*   `i-pwn`\n*   `i-tao`\n*   `i-tay`\n*   `i-tsu`\n*   `sgn-BE-FR`\n*   `sgn-BE-NL`\n*   `sgn-CH-DE`\n\n### `function warning(reason, code, offset)`\n\nCalled when an error occurs.\n\n###### Parameters\n\n*   `reason` (`string`)\n    — English reason for failure\n*   `code` (`number`)\n    — code for failure\n*   `offset` (`number`)\n    — index-based place where the error occurred in the tag\n\n###### Warnings\n\n| code | reason                                                                 |\n| :--- | :--------------------------------------------------------------------- |\n| 1    | Too long variant, expected at most 8 characters                        |\n| 2    | Too long extension, expected at most 8 characters                      |\n| 3    | Too many extended language subtags, expected at most 3 subtags         |\n| 4    | Empty extension, extensions must have at least 2 characters of content |\n| 5    | Too long private-use area, expected at most 8 characters               |\n| 6    | Found superfluous content after tag                                    |\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports additional `Schema`, `Extension`, `Warning`, and `Options` types that\nmodel their respective interfaces.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 12.20+, 14.14+, and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`wooorm/bcp-47-match`](https://github.com/wooorm/bcp-47-match)\n    — match BCP 47 language tags with language ranges per RFC 4647\n*   [`wooorm/bcp-47-normalize`](https://github.com/wooorm/bcp-47-normalize)\n    — normalize, canonicalize, and format BCP 47 tags\n*   [`wooorm/iso-3166`](https://github.com/wooorm/iso-3166)\n    — ISO 3166 codes\n*   [`wooorm/iso-639-2`](https://github.com/wooorm/iso-639-2)\n    — ISO 639-2 codes\n*   [`wooorm/iso-639-3`](https://github.com/wooorm/iso-639-3)\n    — ISO 639-3 codes\n*   [`wooorm/iso-15924`](https://github.com/wooorm/iso-15924)\n    — ISO 15924 codes\n*   [`wooorm/un-m49`](https://github.com/wooorm/un-m49)\n    — UN M49 codes\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/wooorm/bcp-47/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/bcp-47/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/bcp-47.svg\n\n[coverage]: https://codecov.io/github/wooorm/bcp-47\n\n[downloads-badge]: https://img.shields.io/npm/dm/bcp-47.svg\n\n[downloads]: https://www.npmjs.com/package/bcp-47\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/bcp-47.svg\n\n[size]: https://bundlephobia.com/result?p=bcp-47\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[skypack]: https://www.skypack.dev\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n\n[spec]: https://tools.ietf.org/rfc/bcp/bcp47.html\n\n[warning]: #function-warningreason-code-offset\n\n[schema]: #schema\n\n[iso-639]: https://en.wikipedia.org/wiki/ISO_639\n\n[iso-15924]: https://en.wikipedia.org/wiki/ISO_15924\n\n[iso-3166-1]: https://en.wikipedia.org/wiki/ISO_3166-1\n\n[un-m49]: https://en.wikipedia.org/wiki/UN_M.49\n","_attachments":{},"homepage":"https://github.com/wooorm/bcp-47#readme","bugs":{"url":"https://github.com/wooorm/bcp-47/issues"},"license":"MIT"}