{"_id":"font-weight-from-name","_rev":"33-8a21bbb3354e40452398c4cc99f250c6","name":"font-weight-from-name","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"font-weight-from-name","version":"1.0.0","author":{"url":"http://blakek.me/","name":"Blake Knight","email":"oss.ideas@gmail.com"},"license":"MIT","_id":"font-weight-from-name@1.0.0","maintainers":[{"name":"blakek","email":"oss.ideas@gmail.com"}],"homepage":"https://github.com/gsandf/font-weight-from-name#readme","bugs":{"url":"https://github.com/gsandf/font-weight-from-name/issues"},"ava":{"babel":"inherit","require":["babel-register"]},"dist":{"shasum":"4156dc56021efa0e27701b776d8151a7b5cac7ee","tarball":"https://registry.npmjs.org/font-weight-from-name/-/font-weight-from-name-1.0.0.tgz","integrity":"sha512-ymv3xFou8OvisEzt0ThVAYnhWSfgl+t8sQLnoO+RwbhV85w0maOKKb8OGbIdiqtZCmN7ClRPXJbZkRa8RBmjBw==","signatures":[{"sig":"MEUCIE7ViHlw0ShaAFrWJ2gQK/TUuTPSIrlHFqnwihgagArLAiEA73QGRYXMMLkw/nEe6GQMiW2XDcx7dr1XeptkZz+G/O4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./dist/index.js","babel":{"presets":["env"]},"module":"./src/index.js","gitHead":"57f5e106667fc01ffe5b6d0424a4ba89ddca47ce","scripts":{"lint":"eslint src","test":"ava","build":"babel src --out-dir dist --ignore *.test.js","prepublish":"yarn build"},"_npmUser":{"name":"blakek","email":"oss.ideas@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/gsandf/font-weight-from-name.git","type":"git"},"_npmVersion":"5.3.0","description":"> ⚖ Get the font weight number from common names","directories":{},"_nodeVersion":"8.5.0","eslintConfig":{"extends":"gsandf"},"devDependencies":{"ava":"^0.22.0","eslint":"^4.8.0","babel-cli":"^6.26.0","babel-preset-env":"^1.6.0","eslint-config-gsandf":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/font-weight-from-name-1.0.0.tgz_1507573300665_0.09395700506865978","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"font-weight-from-name","version":"1.0.1","author":{"url":"http://blakek.me/","name":"Blake Knight","email":"oss.ideas@gmail.com"},"license":"MIT","_id":"font-weight-from-name@1.0.1","maintainers":[{"name":"williamhickok11","email":"williamhickok11@gmail.com"},{"name":"gsf-admin","email":"mindreactor@gmail.com"},{"name":"ruebel","email":"randy.uebel@gmail.com"},{"name":"blakek","email":"oss.ideas@gmail.com"}],"homepage":"https://github.com/gsandf/font-weight-from-name#readme","bugs":{"url":"https://github.com/gsandf/font-weight-from-name/issues"},"ava":{"babel":"inherit","require":["babel-register"]},"dist":{"shasum":"a1676f1366652e9cb8baec80d3e0c1102f7d3e87","tarball":"https://registry.npmjs.org/font-weight-from-name/-/font-weight-from-name-1.0.1.tgz","integrity":"sha512-G06Cjdi+UoquzSrTSc3bGtcHVuzpt9tTePx7skcFHUBiiruPBPaIuLFkJCqpTFVLcSbMN2mOie8wwrHfGvOR9Q==","signatures":[{"sig":"MEUCIQCqguHq/LSaJ+w4Iuye6vXnSMpzscZYyaepqsz/9faNKQIgWKEbilDRQvg6qDoCw4xe0bqKHl5pyaCaUukm9wjoTJo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./dist/index.js","babel":{"presets":["env"]},"module":"./src/index.js","gitHead":"5131b2d94bccd6072a332c963fb3e34167725cdb","scripts":{"lint":"eslint src","test":"ava","build":"rm -rf dist && babel src --out-dir dist --ignore *.test.js","prepublish":"yarn build"},"_npmUser":{"name":"blakek","email":"oss.ideas@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/gsandf/font-weight-from-name.git","type":"git"},"_npmVersion":"5.3.0","description":"> ⚖ Get the font weight number from common names","directories":{},"_nodeVersion":"8.5.0","eslintConfig":{"extends":"gsandf"},"devDependencies":{"ava":"^0.22.0","eslint":"^4.8.0","babel-cli":"^6.26.0","babel-preset-env":"^1.6.0","eslint-config-gsandf":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/font-weight-from-name-1.0.1.tgz_1507573795853_0.7964472793973982","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-10-09T18:21:42.421Z","modified":"2026-04-17T12:52:22.043Z","1.0.0":"2017-10-09T18:21:42.421Z","1.0.1":"2017-10-09T18:29:56.777Z"},"bugs":{"url":"https://github.com/gsandf/font-weight-from-name/issues"},"author":{"url":"http://blakek.me/","name":"Blake Knight","email":"oss.ideas@gmail.com"},"license":"MIT","homepage":"https://github.com/gsandf/font-weight-from-name#readme","repository":{"url":"git+https://github.com/gsandf/font-weight-from-name.git","type":"git"},"description":"> ⚖ Get the font weight number from common names","maintainers":[{"email":"mmcmains@gsandf.com","name":"meyer_mcmains"},{"email":"oss.ideas@gmail.com","name":"blakek"}],"readme":"# font-weight-from-name\n\n> ⚖ Get the font weight number from common names\n\n## Usage\n\n```js\nimport fontWeight from 'font-weight-from-name'\n\nconsole.log(fontWeight('semibold')) // > 600\nconsole.log(fontWeight('demi bold')) // > 600\n// non-alpha characters are tossed, and capitalization is ignored\nconsole.log(fontWeight('dEMi__ --- bOLD?!😉')) // > 600\n```\n\n## Currently supported names/weights\n\n⭐ Remember, capitalization and spacing _doesn't matter_.\n\nWeight | Names\n------ | -----\n100    | hairline, thin\n200    | extralight, ultralight\n300    | light\n400    | normal, regular\n500    | medium\n600    | demibold, semibold\n700    | bold\n800    | extrabold, ultrabold\n900    | black, heavy\n\nDid we miss something?  [Create an issue](https://github.com/gsandf/font-weight-from-name/issues/new) and let's get it added.\n\n\n## Install\n\nWith [Yarn](https://yarnpkg.com/en/) _or_ [npm](https://npmjs.org/) installed, run:\n\n```bash\nyarn add font-weight-from-name\n\n# ...or, if using `npm`\nnpm install font-weight-from-name\n```\n\n## Acknowledgments\n\n`font-weight-from-name` was inspired by [`dan-gamble/postcss-font-weight-names`](https://github.com/dan-gamble/postcss-font-weight-names)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}