Get picture uid from url.
yarn add @jswork/next-gpid
import '@jswork/next-gpid';
const url = 'http://upload-images.jianshu.io/upload_images/2110669-31cb0672f7e2c467.png';
const pid = nx.gpid(url);
// 2110669-31cb0672f7e2c467
Code released under the MIT license.